This commit is contained in:
Бранимир Караџић 2021-04-26 19:54:58 -07:00
parent 67e628d8e3
commit d01f86a6a9

View File

@ -6474,7 +6474,12 @@ namespace bgfx { namespace gl
code = temp; 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) ); GL_CHECK(glCompileShader(m_id) );
GLint compiled = 0; GLint compiled = 0;