diff options
| author | George Marques | 2016-09-03 19:36:44 -0300 |
|---|---|---|
| committer | George Marques | 2016-09-03 19:36:44 -0300 |
| commit | c9b82498b4b8de7b5f4c19873421d32ca1749ed2 (patch) | |
| tree | 0eb93a7f5534ae6ca54b7d31a274653bce806f71 /drivers/gles2/rasterizer_gles2.cpp | |
| parent | 2eaad1cfd1c96538d7aaf8bbd46535f8a143d2ad (diff) | |
| download | godot-c9b82498b4b8de7b5f4c19873421d32ca1749ed2.tar.gz godot-c9b82498b4b8de7b5f4c19873421d32ca1749ed2.tar.zst godot-c9b82498b4b8de7b5f4c19873421d32ca1749ed2.zip | |
Diffstat (limited to 'drivers/gles2/rasterizer_gles2.cpp')
| -rw-r--r-- | drivers/gles2/rasterizer_gles2.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_gles2.cpp b/drivers/gles2/rasterizer_gles2.cpp index ba93a26a2..5adc8b8ce 100644 --- a/drivers/gles2/rasterizer_gles2.cpp +++ b/drivers/gles2/rasterizer_gles2.cpp @@ -5210,7 +5210,6 @@ bool RasterizerGLES2::_setup_material(const Geometry *p_geometry,const Material material_shader.set_conditional(MaterialShaderGLES2::USE_FOG,current_env && current_env->fx_enabled[VS::ENV_FX_FOG]); //glDepthMask( true ); - } @@ -10833,6 +10832,11 @@ void RasterizerGLES2::init() { copy_shader.set_conditional(CopyShaderGLES2::USE_GLES_OVER_GL,true); #endif +#ifdef ANGLE_ENABLED + // Fix for ANGLE + material_shader.set_conditional(MaterialShaderGLES2::DISABLE_FRONT_FACING, true); +#endif + shadow=NULL; shadow_pass=0; @@ -10920,7 +10924,11 @@ void RasterizerGLES2::init() { srgb_supported=extensions.has("GL_EXT_sRGB"); +#ifndef ANGLE_ENABLED s3tc_srgb_supported = s3tc_supported && extensions.has("GL_EXT_texture_compression_s3tc"); +#else + s3tc_srgb_supported = s3tc_supported; +#endif latc_supported = extensions.has("GL_EXT_texture_compression_latc"); anisotropic_level=1.0; use_anisotropic_filter=extensions.has("GL_EXT_texture_filter_anisotropic"); |
