Bug 1276405 - r?jrmuizel - EXT_color_buffer_float should disable draft
authorJeff Gilbert <jdashg@gmail.com>
Fri, 27 May 2016 18:55:13 -0700
changeset 372324 a1ffdd3ef958f7de0b9e3964fdf3380f788f5cfa
parent 370842 d6d4e8417d2fd71fdf47c319b7a217f6ace9d5a5
child 522165 3fbe997f88e8c43586b99a686a40abda798f9f59
push id19509
push userjgilbert@mozilla.com
push dateSat, 28 May 2016 02:00:52 +0000
reviewersjrmuizel
bugs1276405
milestone49.0a1
Bug 1276405 - r?jrmuizel - EXT_color_buffer_float should disable From f2c5ae19e129035e8f6f49cd9aea72718b99cc3b Mon Sep 17 00:00:00 2001 clearColor clamping. --- dom/canvas/WebGLContextFramebufferOperations.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) MozReview-Commit-ID: 6aZglnpglTD
dom/canvas/WebGLContextFramebufferOperations.cpp
--- a/dom/canvas/WebGLContextFramebufferOperations.cpp
+++ b/dom/canvas/WebGLContextFramebufferOperations.cpp
@@ -67,17 +67,18 @@ GLClampFloat(GLfloat val)
 void
 WebGLContext::ClearColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 {
     if (IsContextLost())
         return;
 
     MakeContextCurrent();
 
-    const bool supportsFloatColorBuffers = (IsExtensionEnabled(WebGLExtensionID::EXT_color_buffer_half_float) ||
+    const bool supportsFloatColorBuffers = (IsExtensionEnabled(WebGLExtensionID::EXT_color_buffer_float) ||
+                                            IsExtensionEnabled(WebGLExtensionID::EXT_color_buffer_half_float) ||
                                             IsExtensionEnabled(WebGLExtensionID::WEBGL_color_buffer_float));
     if (!supportsFloatColorBuffers) {
         r = GLClampFloat(r);
         g = GLClampFloat(g);
         b = GLClampFloat(b);
         a = GLClampFloat(a);
     }