This commit is contained in:
Бранимир Караџић 2021-01-25 12:24:12 -08:00
parent d8cfb8f64d
commit 16f441758f
2 changed files with 5 additions and 1 deletions

View File

@ -477,6 +477,7 @@ GL_IMPORT_IMG__(true, PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC, glRenderbuffe
# endif // BGFX_CONFIG_RENDERER_OPENGL
GL_IMPORT______(true, PFNGLINSERTEVENTMARKEREXTPROC, glInsertEventMarker);
GL_IMPORT_ARB__(true, PFNGLPROVOKINGVERTEXPROC, glProvokingVertex);
GL_IMPORT_ARB__(true, PFNGLPUSHDEBUGGROUPPROC, glPushDebugGroup);
GL_IMPORT_ARB__(true, PFNGLPOPDEBUGGROUPPROC, glPopDebugGroup);
GL_IMPORT______(true, PFNGLPUSHGROUPMARKEREXTPROC, glPushGroupMarker);
@ -523,6 +524,7 @@ GL_IMPORT______(true, PFNGLTEXIMAGE3DMULTISAMPLEPROC, glTexImage3DM
GL_IMPORT_EXT__(true, PFNGLFRAMEBUFFERTEXTURELAYERPROC, glFramebufferTextureLayer);
GL_IMPORT_EXT__(true, PFNGLINSERTEVENTMARKEREXTPROC, glInsertEventMarker);
GL_IMPORT_ARB__(true, PFNGLPROVOKINGVERTEXPROC, glProvokingVertex);
GL_IMPORT_ARB__(true, PFNGLPUSHDEBUGGROUPPROC, glPushDebugGroup);
GL_IMPORT_ARB__(true, PFNGLPOPDEBUGGROUPPROC, glPopDebugGroup);
GL_IMPORT_EXT__(true, PFNGLPUSHGROUPMARKEREXTPROC, glPushGroupMarker);
@ -609,6 +611,7 @@ GL_IMPORT______(true, PFNGLTEXIMAGE3DMULTISAMPLEPROC, glTexImage3DM
GL_IMPORT______(true, PFNGLFRAMEBUFFERTEXTURELAYERPROC, glFramebufferTextureLayer);
GL_IMPORT______(true, PFNGLINSERTEVENTMARKEREXTPROC, glInsertEventMarker);
GL_IMPORT_ARB__(true, PFNGLPROVOKINGVERTEXPROC, glProvokingVertex);
GL_IMPORT_ARB__(true, PFNGLPUSHDEBUGGROUPPROC, glPushDebugGroup);
GL_IMPORT_ARB__(true, PFNGLPOPDEBUGGROUPPROC, glPopDebugGroup);
GL_IMPORT______(true, PFNGLPUSHGROUPMARKEREXTPROC, glPushGroupMarker);

View File

@ -3005,7 +3005,8 @@ namespace bgfx { namespace gl
GL_CHECK(glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS) );
}
if (s_extension[Extension::ARB_provoking_vertex].m_supported)
if (NULL != glProvokingVertex
&& s_extension[Extension::ARB_provoking_vertex].m_supported)
{
GL_CHECK(glProvokingVertex(GL_FIRST_VERTEX_CONVENTION) );
}