Implement capturing GLES1 specific state by checking the difference to the default state using getEnableFeature. When getEnableFeature is called from a context version higher than 1 and a GLES1 state is requested, an assertion is hit. Therefore the context version needs to be determined before calling getEnableFeature. Use the available isTextureTargetEnabled function to determine GL_TEXTURE_2D and GL_TEXTURE_CUBE_MAP states in getEnableFeature. Return false in isTextureTargetEnabled when mTextUnitEnables is empty, so the vector is not accessed when not initialized, which was the case for a default state. Bug: angleproject:5893 Change-Id: I66ee41c3bf7a8e1f04a8a4ce0461fddc16f9a013 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2877237Reviewed-by:Cody Northrop <cnorthrop@google.com> Reviewed-by:
Jamie Madill <jmadill@chromium.org> Commit-Queue: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| FrameCapture.cpp | Loading commit data... | |
| FrameCapture.h | Loading commit data... | |
| FrameCapture_mock.cpp | Loading commit data... | |
| OWNERS | Loading commit data... | |
| capture_gles_1_0_autogen.cpp | Loading commit data... | |
| capture_gles_1_0_autogen.h | Loading commit data... | |
| capture_gles_1_0_params.cpp | Loading commit data... | |
| capture_gles_2_0_autogen.cpp | Loading commit data... | |
| capture_gles_2_0_autogen.h | Loading commit data... | |
| capture_gles_2_0_params.cpp | Loading commit data... | |
| capture_gles_3_0_autogen.cpp | Loading commit data... | |
| capture_gles_3_0_autogen.h | Loading commit data... | |
| capture_gles_3_0_params.cpp | Loading commit data... | |
| capture_gles_3_1_autogen.cpp | Loading commit data... | |
| capture_gles_3_1_autogen.h | Loading commit data... | |
| capture_gles_3_1_params.cpp | Loading commit data... | |
| capture_gles_3_2_autogen.cpp | Loading commit data... | |
| capture_gles_3_2_autogen.h | Loading commit data... | |
| capture_gles_3_2_params.cpp | Loading commit data... | |
| capture_gles_ext_autogen.cpp | Loading commit data... | |
| capture_gles_ext_autogen.h | Loading commit data... | |
| capture_gles_ext_params.cpp | Loading commit data... | |
| frame_capture_replay_autogen.cpp | Loading commit data... | |
| frame_capture_utils.cpp | Loading commit data... | |
| frame_capture_utils.h | Loading commit data... | |
| frame_capture_utils_autogen.cpp | Loading commit data... | |
| frame_capture_utils_autogen.h | Loading commit data... | |
| frame_capture_utils_mock.cpp | Loading commit data... | |
| gl_enum_utils.cpp | Loading commit data... | |
| gl_enum_utils.h | Loading commit data... | |
| gl_enum_utils_autogen.cpp | Loading commit data... | |
| gl_enum_utils_autogen.h | Loading commit data... | |
| trace_fixture.cpp | Loading commit data... | |
| trace_fixture.h | Loading commit data... |