Replace some #if HAVE_COGL_GL lines with #ifdef
This was generating warnings when the GL driver is disabled. Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit f26682dcc04642fed9db959c63d6c6e4261d2148) Conflicts: cogl/cogl-auto-texture.c
This commit is contained in:
parent
795c3fd020
commit
5d6160c751
@ -300,7 +300,7 @@ cogl_texture_new_from_foreign (GLuint gl_handle,
|
||||
{
|
||||
_COGL_GET_CONTEXT (ctx, NULL);
|
||||
|
||||
#if HAVE_COGL_GL
|
||||
#ifdef HAVE_COGL_GL
|
||||
if (gl_target == GL_TEXTURE_RECTANGLE_ARB)
|
||||
{
|
||||
CoglTextureRectangle *texture_rectangle;
|
||||
|
@ -388,7 +388,7 @@ cogl_texture_rectangle_new_from_foreign (CoglContext *ctx,
|
||||
|
||||
/* Obtain texture parameters */
|
||||
|
||||
#if HAVE_COGL_GL
|
||||
#ifdef HAVE_COGL_GL
|
||||
if (ctx->driver == COGL_DRIVER_GL)
|
||||
{
|
||||
GLint val;
|
||||
|
@ -375,7 +375,7 @@ cogl_texture_2d_new_from_foreign (CoglContext *ctx,
|
||||
/* Obtain texture parameters
|
||||
(only level 0 we are interested in) */
|
||||
|
||||
#if HAVE_COGL_GL
|
||||
#ifdef HAVE_COGL_GL
|
||||
if ((ctx->private_feature_flags &
|
||||
COGL_PRIVATE_FEATURE_QUERY_TEXTURE_PARAMETERS))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user