Skip to content

Commit

Permalink
vita: ifdef out glDetachShader
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Mar 9, 2024
1 parent 8afd690 commit d703d62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/deps/imgui/backends/imgui_impl_opengl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,10 @@ static bool ImGui_ImplOpenGL3_CreateDeviceObjects()
glLinkProgram(g_ShaderHandle);
CheckProgram(g_ShaderHandle, "shader program");

#ifndef __vita__
glDetachShader(g_ShaderHandle, vert_handle);
glDetachShader(g_ShaderHandle, frag_handle);
#endif
glDeleteShader(vert_handle);
glDeleteShader(frag_handle);

Expand Down
2 changes: 2 additions & 0 deletions core/rend/gles/gles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,8 +1039,10 @@ GLuint gl_CompileAndLink(const char *vertexShader, const char *fragmentShader)
INFO_LOG(RENDERER, "// FRAGMENT SHADER\n%s\n// END", fragmentShader);
die("shader compile fail\n");
}
#ifndef __vita__
glDetachShader(program, vs);
glDetachShader(program, ps);
#endif
glDeleteShader(vs);
glDeleteShader(ps);

Expand Down

0 comments on commit d703d62

Please sign in to comment.