intel: add support for using API_OPENGL_CORE
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 24 Jul 2012 21:52:33 +0000 (14:52 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 30 Jul 2012 23:25:56 +0000 (16:25 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_extensions.c

index c2bc0722afabe4818929075e80a780abc9ca2ec0..b75221673b0078408d072e84eba0a5db2e2e14fe 100755 (executable)
@@ -44,7 +44,7 @@ intelInitExtensions(struct gl_context *ctx)
 
    ctx->Extensions.ARB_draw_elements_base_vertex = true;
    ctx->Extensions.ARB_explicit_attrib_location = true;
-   if (ctx->API == API_OPENGL)
+   if (_mesa_is_desktop_gl(ctx))
       ctx->Extensions.ARB_framebuffer_object = true;
    ctx->Extensions.ARB_half_float_pixel = true;
    ctx->Extensions.ARB_map_buffer_range = true;