Cleanup.
This commit is contained in:
parent
67e628d8e3
commit
d01f86a6a9
@ -6474,7 +6474,12 @@ namespace bgfx { namespace gl
|
||||
code = temp;
|
||||
}
|
||||
|
||||
GL_CHECK(glShaderSource(m_id, 1, (const GLchar**)&code, NULL) );
|
||||
{
|
||||
const GLchar* str = (const GLchar*)code.getPtr();
|
||||
int32_t len = code.getLength();
|
||||
GL_CHECK(glShaderSource(m_id, 1, &str, &len) );
|
||||
}
|
||||
|
||||
GL_CHECK(glCompileShader(m_id) );
|
||||
|
||||
GLint compiled = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user