mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Fix texture_float and texture_half_float detection on some GPUs
This commit is contained in:
parent
449ffb23ac
commit
4f35e82cf5
2 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,8 @@ impl WebGLExtension for OESTextureFloat {
|
||||||
|
|
||||||
fn is_supported(ext: &WebGLExtensions) -> bool {
|
fn is_supported(ext: &WebGLExtensions) -> bool {
|
||||||
ext.supports_any_gl_extension(&["GL_OES_texture_float",
|
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) {
|
fn enable(ext: &WebGLExtensions) {
|
||||||
|
|
|
@ -33,7 +33,8 @@ impl WebGLExtension for OESTextureHalfFloat {
|
||||||
fn is_supported(ext: &WebGLExtensions) -> bool {
|
fn is_supported(ext: &WebGLExtensions) -> bool {
|
||||||
ext.supports_any_gl_extension(&["GL_OES_texture_half_float",
|
ext.supports_any_gl_extension(&["GL_OES_texture_half_float",
|
||||||
"GL_ARB_half_float_pixel",
|
"GL_ARB_half_float_pixel",
|
||||||
"GL_NV_half_float"])
|
"GL_NV_half_float",
|
||||||
|
"GL_EXT_color_buffer_half_float"])
|
||||||
}
|
}
|
||||||
|
|
||||||
fn enable(ext: &WebGLExtensions) {
|
fn enable(ext: &WebGLExtensions) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue