diff options
author | Jordan Justen <[email protected]> | 2012-07-19 11:27:16 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2012-07-30 16:18:57 -0700 |
commit | 09714c09a40501d82823e42f7461d7b8d7bf11c0 (patch) | |
tree | 144610e22885309e431706173799f044d86255c7 /src/mesa/main/teximage.c | |
parent | 3d284dcba6f692ce268c9a2178a30e7a308b2cfc (diff) |
mesa: add support for using API_OPENGL_CORE
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 91df133312b..d2746c6f33d 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -130,7 +130,7 @@ _mesa_base_tex_format( struct gl_context *ctx, GLint internalFormat ) /* GL_BGRA can be an internal format *only* in OpenGL ES (1.x or 2.0). */ - if (ctx->API != API_OPENGL) { + if (_mesa_is_gles(ctx)) { switch (internalFormat) { case GL_BGRA: return GL_RGBA; |