Call glClientActiveTexture() through COGL context.

Fixes build issues on systems with OpenGL header older than 1.3.
This commit is contained in:
Ole André Vadla Ravnås 2009-07-01 16:27:11 +02:00 committed by Neil Roberts
parent f61f66c6fe
commit 0157851270
2 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,10 @@ typedef CoglFuncPtr (*GLXGetProcAddressProc) (const guint8 *procName);
#include "cogl-gles2-wrapper.h" #include "cogl-gles2-wrapper.h"
#endif #endif
#ifdef HAVE_COGL_GL
#define glClientActiveTexture ctx->pf_glClientActiveTexture
#endif
#ifdef COGL_GL_DEBUG #ifdef COGL_GL_DEBUG
/* GL error to string conversion */ /* GL error to string conversion */
static const struct { static const struct {

View File

@ -37,6 +37,8 @@
#define _COGL_MAX_BEZ_RECURSE_DEPTH 16 #define _COGL_MAX_BEZ_RECURSE_DEPTH 16
#define glClientActiveTexture ctx->pf_glClientActiveTexture
void void
_cogl_path_add_node (gboolean new_sub_path, _cogl_path_add_node (gboolean new_sub_path,
float x, float x,