mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Don't call glDetachShader().
Some drivers don't like it.
This commit is contained in:
parent
f2371cf691
commit
f61a91c2fd
@ -466,17 +466,11 @@ static GLuint compile_program(const char *vertex, const char *fragment, unsigned
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Clean up dead memory. We're not going to relink the program.
|
// Clean up dead memory. We're not going to relink the program.
|
||||||
|
// Detaching first seems to kill some mobile drivers (according to the intertubes anyways).
|
||||||
if (vert)
|
if (vert)
|
||||||
{
|
|
||||||
glDetachShader(prog, vert);
|
|
||||||
glDeleteShader(vert);
|
glDeleteShader(vert);
|
||||||
}
|
|
||||||
|
|
||||||
if (frag)
|
if (frag)
|
||||||
{
|
|
||||||
glDetachShader(prog, frag);
|
|
||||||
glDeleteShader(frag);
|
glDeleteShader(frag);
|
||||||
}
|
|
||||||
|
|
||||||
glUseProgram(prog);
|
glUseProgram(prog);
|
||||||
GLint location = get_uniform(prog, "Texture");
|
GLint location = get_uniform(prog, "Texture");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user