From: Jordan Justen Date: Tue, 24 Jul 2012 21:52:33 +0000 (-0700) Subject: intel: add support for using API_OPENGL_CORE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1fea3df6f4455fd2047e631d4d3c85d3ff1029ae;p=mesa.git intel: add support for using API_OPENGL_CORE Signed-off-by: Jordan Justen Reviewed-by: Brian Paul Reviewed-by: Eric Anholt Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c index c2bc0722afa..b75221673b0 100755 --- a/src/mesa/drivers/dri/intel/intel_extensions.c +++ b/src/mesa/drivers/dri/intel/intel_extensions.c @@ -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;