format fix

This commit is contained in:
raven02 2014-12-29 06:37:32 +08:00
parent b81e0f9e4c
commit 06907cb942
1 changed files with 4 additions and 1 deletions

View File

@ -670,7 +670,10 @@ void GLShaderProgram::DecompileAsync(RSXShaderProgram& prog)
void GLShaderProgram::Compile() void GLShaderProgram::Compile()
{ {
if (m_id) glDeleteShader(m_id); if (m_id)
{
glDeleteShader(m_id);
}
m_id = glCreateShader(GL_FRAGMENT_SHADER); m_id = glCreateShader(GL_FRAGMENT_SHADER);