diff --git a/core/deps/imgui/backends/imgui_impl_opengl3.cpp b/core/deps/imgui/backends/imgui_impl_opengl3.cpp index a484ad5fcc..c97e9fe1dd 100644 --- a/core/deps/imgui/backends/imgui_impl_opengl3.cpp +++ b/core/deps/imgui/backends/imgui_impl_opengl3.cpp @@ -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); diff --git a/core/rend/gles/gles.cpp b/core/rend/gles/gles.cpp index 8e96c340a6..ef929f46bb 100644 --- a/core/rend/gles/gles.cpp +++ b/core/rend/gles/gles.cpp @@ -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);