mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-03 14:09:33 +03:00
Capture/Replay: Init shader outputs during self-tests.
This forces all uninitialized variables to have default values. For instance if the application doesn't initialize the output color, or a varying that's use in the output, this will ensure we don't use any undefined values in the computation. Found when working on a re-trace of T-Rex, which doesn't write to the alpha channel in the final rendering pass. Also fixes undefined values in GLSLTest.InactiveVaryingInVertexActiveInFragment. Bug: angleproject:5133 Change-Id: Ia291338e5adf23dab5263cb2ebe737dc05852d3e Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3110225 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Tim Van Patten <timvp@google.com>
This commit is contained in:
committed by
Angle LUCI CQ
parent
b196eec017
commit
2f45d93d5b
@@ -300,6 +300,11 @@ bool EGLWindow::initializeDisplay(OSWindow *osWindow,
|
||||
enabledFeatureOverrides.push_back("forceRobustResourceInit");
|
||||
}
|
||||
|
||||
if (params.forceInitShaderOutputVariables == EGL_TRUE)
|
||||
{
|
||||
enabledFeatureOverrides.push_back("forceInitShaderOutputVariables");
|
||||
}
|
||||
|
||||
const bool hasFeatureControlANGLE =
|
||||
strstr(extensionString, "EGL_ANGLE_feature_control") != nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user