diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 7dd88df62..0956663e2 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -3791,8 +3791,8 @@ namespace bgfx { namespace gl GL_CHECK(glGetProgramInterfaceiv(m_id, GL_PROGRAM_INPUT, GL_ACTIVE_RESOURCES, &activeAttribs ) ); GL_CHECK(glGetProgramInterfaceiv(m_id, GL_UNIFORM, GL_ACTIVE_RESOURCES, &activeUniforms) ); GL_CHECK(glGetProgramInterfaceiv(m_id, GL_BUFFER_VARIABLE, GL_ACTIVE_RESOURCES, &activeBuffers ) ); - GL_CHECK(glGetProgramInterfaceiv(m_id, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, &max0 ) ); - GL_CHECK(glGetProgramInterfaceiv(m_id, GL_UNIFORM, GL_MAX_NAME_LENGTH, &max1 ) ); + GL_CHECK(glGetProgramInterfaceiv(m_id, GL_PROGRAM_INPUT, GL_MAX_NAME_LENGTH, &max0 ) ); + GL_CHECK(glGetProgramInterfaceiv(m_id, GL_UNIFORM, GL_MAX_NAME_LENGTH, &max1 ) ); } else { @@ -3817,7 +3817,15 @@ namespace bgfx { namespace gl { GL_CHECK(glGetProgramResourceName(m_id, GL_PROGRAM_INPUT, ii, maxLength + 1, &size, name) ); GLenum typeProp[] = { GL_TYPE }; - GL_CHECK(glGetProgramResourceiv(m_id, GL_PROGRAM_INPUT, ii, BX_COUNTOF(typeProp), typeProp, 1, NULL, (GLint *)&type) ); + GL_CHECK(glGetProgramResourceiv(m_id + , GL_PROGRAM_INPUT + , ii + , BX_COUNTOF(typeProp) + , typeProp + , 1 + , NULL + , (GLint *)&type) + ); } else { diff --git a/src/renderer_gl.h b/src/renderer_gl.h index 527910e55..188e5a0b5 100644 --- a/src/renderer_gl.h +++ b/src/renderer_gl.h @@ -867,6 +867,10 @@ typedef uint64_t GLuint64; # define GL_DISPATCH_INDIRECT_BUFFER 0x90EE #endif // GL_DISPATCH_INDIRECT_BUFFER +#ifndef GL_MAX_NAME_LENGTH +# define GL_MAX_NAME_LENGTH 0x92F6 +#endif // GL_MAX_NAME_LENGTH + #if BX_PLATFORM_NACL # include "glcontext_ppapi.h" #elif BX_PLATFORM_WINDOWS