Skip to content

Commit

Permalink
Fix texture_float and texture_half_float detection on some GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Sep 5, 2017
1 parent 449ffb2 commit 4f35e82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -32,7 +32,8 @@ impl WebGLExtension for OESTextureFloat {

fn is_supported(ext: &WebGLExtensions) -> bool {
ext.supports_any_gl_extension(&["GL_OES_texture_float",
"GL_ARB_texture_float"])
"GL_ARB_texture_float",
"GL_EXT_color_buffer_float"])
}

fn enable(ext: &WebGLExtensions) {
Expand Down
Expand Up @@ -33,7 +33,8 @@ impl WebGLExtension for OESTextureHalfFloat {
fn is_supported(ext: &WebGLExtensions) -> bool {
ext.supports_any_gl_extension(&["GL_OES_texture_half_float",
"GL_ARB_half_float_pixel",
"GL_NV_half_float"])
"GL_NV_half_float",
"GL_EXT_color_buffer_half_float"])
}

fn enable(ext: &WebGLExtensions) {
Expand Down

0 comments on commit 4f35e82

Please sign in to comment.