mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
GL import fixes for Linux.
This commit is contained in:
parent
0829795663
commit
f554176645
2 changed files with 10 additions and 10 deletions
|
@ -224,7 +224,7 @@ namespace bgfx
|
||||||
if (NULL == _func) \
|
if (NULL == _func) \
|
||||||
{ \
|
{ \
|
||||||
_func = (_proto)glXGetProcAddress( (const GLubyte*)#_import); \
|
_func = (_proto)glXGetProcAddress( (const GLubyte*)#_import); \
|
||||||
BX_TRACE(#_func " = " #_import " 0x%08x", _func); \
|
BX_TRACE("%p " #_func " (" #_import ")", _func); \
|
||||||
BGFX_FATAL(_optional || NULL != _func, Fatal::UnableToInitialize, "Failed to create OpenGL context. glXGetProcAddress %s", #_import); \
|
BGFX_FATAL(_optional || NULL != _func, Fatal::UnableToInitialize, "Failed to create OpenGL context. glXGetProcAddress %s", #_import); \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,14 +283,14 @@ GL_IMPORT____(false, PFNGLVIEWPORTPROC, glViewport);
|
||||||
GL_IMPORT____(false, PFNGLCLEARDEPTHPROC, glClearDepth);
|
GL_IMPORT____(false, PFNGLCLEARDEPTHPROC, glClearDepth);
|
||||||
GL_IMPORT____(false, PFNGLPOINTSIZEPROC, glPointSize);
|
GL_IMPORT____(false, PFNGLPOINTSIZEPROC, glPointSize);
|
||||||
|
|
||||||
GL_IMPORT____(true, PFNGLDEBUGMESSAGECONTROLARBPROC, glDebugMessageControl);
|
//GL_IMPORT____(true, PFNGLDEBUGMESSAGECONTROLARBPROC, glDebugMessageControl);
|
||||||
GL_IMPORT____(true, PFNGLDEBUGMESSAGEINSERTARBPROC, glDebugMessageInsert);
|
//GL_IMPORT____(true, PFNGLDEBUGMESSAGEINSERTARBPROC, glDebugMessageInsert);
|
||||||
GL_IMPORT____(true, PFNGLDEBUGMESSAGECALLBACKARBPROC, glDebugMessageCallback);
|
//GL_IMPORT____(true, PFNGLDEBUGMESSAGECALLBACKARBPROC, glDebugMessageCallback);
|
||||||
GL_IMPORT____(true, PFNGLGETDEBUGMESSAGELOGARBPROC, glGetDebugMessageLog);
|
//GL_IMPORT____(true, PFNGLGETDEBUGMESSAGELOGARBPROC, glGetDebugMessageLog);
|
||||||
GL_IMPORT_ARB(true, PFNGLDEBUGMESSAGECONTROLARBPROC, glDebugMessageControl);
|
GL_IMPORT (true, PFNGLDEBUGMESSAGECONTROLARBPROC, glDebugMessageControl, glDebugMessageControlARB);
|
||||||
GL_IMPORT_ARB(true, PFNGLDEBUGMESSAGEINSERTARBPROC, glDebugMessageInsert);
|
GL_IMPORT (true, PFNGLDEBUGMESSAGEINSERTARBPROC, glDebugMessageInsert, glDebugMessageInsertARB);
|
||||||
GL_IMPORT_ARB(true, PFNGLDEBUGMESSAGECALLBACKARBPROC, glDebugMessageCallback);
|
GL_IMPORT (true, PFNGLDEBUGMESSAGECALLBACKARBPROC, glDebugMessageCallback, glDebugMessageCallbackARB);
|
||||||
GL_IMPORT_ARB(true, PFNGLGETDEBUGMESSAGELOGARBPROC, glGetDebugMessageLog);
|
GL_IMPORT (true, PFNGLGETDEBUGMESSAGELOGARBPROC, glGetDebugMessageLog, glGetDebugMessageLogARB);
|
||||||
|
|
||||||
GL_IMPORT_ARB(true, PFNGLVERTEXATTRIBDIVISORPROC, glVertexAttribDivisor);
|
GL_IMPORT_ARB(true, PFNGLVERTEXATTRIBDIVISORPROC, glVertexAttribDivisor);
|
||||||
GL_IMPORT_ARB(true, PFNGLDRAWARRAYSINSTANCEDPROC, glDrawArraysInstanced);
|
GL_IMPORT_ARB(true, PFNGLDRAWARRAYSINSTANCEDPROC, glDrawArraysInstanced);
|
||||||
|
|
Loading…
Reference in a new issue