From 119f9a779dd2735914217a7b23d90f56cc243495 Mon Sep 17 00:00:00 2001 From: Jeff Gilbert Date: Mon, 10 Feb 2014 18:03:12 -0500 Subject: [PATCH] Bug 968469 - Add check for ARB_half_float_pixel to GLFeature::texture_half_float. r=kamidphish --- gfx/gl/GLContext.cpp | 1 + gfx/gl/GLContext.h | 1 + gfx/gl/GLContextFeatures.cpp | 1 + 3 files changed, 3 insertions(+) diff --git a/gfx/gl/GLContext.cpp b/gfx/gl/GLContext.cpp index 986f7a3628f..7c03f373c54 100644 --- a/gfx/gl/GLContext.cpp +++ b/gfx/gl/GLContext.cpp @@ -130,6 +130,7 @@ static const char *sExtensionNames[] = { "GL_ARB_framebuffer_sRGB", "GL_EXT_framebuffer_sRGB", "GL_KHR_debug", + "GL_ARB_half_float_pixel", nullptr }; diff --git a/gfx/gl/GLContext.h b/gfx/gl/GLContext.h index 80bdb78e8b2..cf307abb6f4 100644 --- a/gfx/gl/GLContext.h +++ b/gfx/gl/GLContext.h @@ -406,6 +406,7 @@ public: ARB_framebuffer_sRGB, EXT_framebuffer_sRGB, KHR_debug, + ARB_half_float_pixel, Extensions_Max, Extensions_End }; diff --git a/gfx/gl/GLContextFeatures.cpp b/gfx/gl/GLContextFeatures.cpp index 5a79fedc6d3..1433ff585c6 100644 --- a/gfx/gl/GLContextFeatures.cpp +++ b/gfx/gl/GLContextFeatures.cpp @@ -296,6 +296,7 @@ static const FeatureInfo sFeatureInfoArr[] = { 310, // OpenGL version 300, // OpenGL ES version { + GLContext::ARB_half_float_pixel, GLContext::ARB_texture_float, GLContext::NV_half_float, GLContext::Extensions_End