diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-01 13:55:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 13:55:07 +0200 |
commit | 658aaa5c79105b00a5588c820bdb1967720a8f49 (patch) | |
tree | 65f0deab564d12902903299179ba1e599c38999c /drivers/gles3/rasterizer_storage_gles3.cpp | |
parent | 39c868171e6b526a06247b3426a1295be2737caf (diff) | |
parent | 849596c40c49a6d9b5437b60264261e4b1e97bcd (diff) |
Merge pull request #27317 from aqnuep/depth_texture_fix
Fixed handling of depth texture so it's resolved and bound when needed
Diffstat (limited to 'drivers/gles3/rasterizer_storage_gles3.cpp')
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp index 1fa4eacd95..a427336337 100644 --- a/drivers/gles3/rasterizer_storage_gles3.cpp +++ b/drivers/gles3/rasterizer_storage_gles3.cpp @@ -8042,8 +8042,8 @@ void RasterizerStorageGLES3::initialize() { String renderer = (const char *)glGetString(GL_RENDERER); - config.no_depth_prepass = !bool(GLOBAL_GET("rendering/quality/depth_prepass/enable")); - if (!config.no_depth_prepass) { + config.use_depth_prepass = bool(GLOBAL_GET("rendering/quality/depth_prepass/enable")); + if (config.use_depth_prepass) { String vendors = GLOBAL_GET("rendering/quality/depth_prepass/disable_for_vendors"); Vector<String> vendor_match = vendors.split(","); @@ -8053,7 +8053,7 @@ void RasterizerStorageGLES3::initialize() { continue; if (renderer.findn(v) != -1) { - config.no_depth_prepass = true; + config.use_depth_prepass = false; } } } |