mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 05:43:12 +01:00
avoid gcc warnings: cast-function-type (#2252)
This commit is contained in:
@@ -352,7 +352,7 @@ namespace bgfx { namespace gl
|
||||
{ \
|
||||
if (NULL == _func) \
|
||||
{ \
|
||||
_func = (_proto)glXGetProcAddress( (const GLubyte*)#_import); \
|
||||
_func = BGFX_CAST_FUNCTION(_proto, glXGetProcAddress( (const GLubyte*)#_import)); \
|
||||
BX_TRACE("%p " #_func " (" #_import ")", _func); \
|
||||
BGFX_FATAL(_optional || NULL != _func, Fatal::UnableToInitialize, "Failed to create OpenGL context. glXGetProcAddress %s", #_import); \
|
||||
} \
|
||||
|
||||
Reference in New Issue
Block a user