Demacroize context_bind_hw_render

This commit is contained in:
twinaphex 2015-03-30 02:53:11 +02:00
parent b40c56bdbe
commit 8eab7e6631
1 changed files with 9 additions and 1 deletions

View File

@ -38,7 +38,6 @@
#include <glsym/glsym.h>
#define context_bind_hw_render(gl, enable) if (gl->shared_context_use && gl->ctx_driver->bind_hw_render) gl->ctx_driver->bind_hw_render(gl, enable)
#if (!defined(HAVE_OPENGLES) || defined(HAVE_OPENGLES3))
#define HAVE_GL_ASYNC_READBACK
@ -384,6 +383,15 @@ typedef struct gl
GLuint vao;
} gl_t;
static INLINE void context_bind_hw_render(gl_t *gl, bool enable)
{
if (!gl)
return;
if (gl->shared_context_use && gl->ctx_driver->bind_hw_render)
gl->ctx_driver->bind_hw_render(gl, enable);
}
static INLINE bool gl_check_error(void)
{
int error = glGetError();