format fix

This commit is contained in:
raven02 2014-12-29 06:42:08 +08:00
parent 51c107656f
commit 24a19a0dd9
1 changed files with 4 additions and 1 deletions

View File

@ -822,7 +822,10 @@ void GLVertexProgram::DecompileAsync(RSXVertexProgram& prog)
void GLVertexProgram::Compile() void GLVertexProgram::Compile()
{ {
if (id) glDeleteShader(id); if (id)
{
glDeleteShader(id);
}
id = glCreateShader(GL_VERTEX_SHADER); id = glCreateShader(GL_VERTEX_SHADER);