mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
OpenGL: Fix rendered textures being flipped.
This was because the clip space of OpenGL has an inverted Y compared to other APIs. This commit: - Updates SPIRV-Cross to the latest version - Uses the new vertex.flip_vert_y option in ShaderModuleGL - Enables tests that are now passing in GL.
This commit is contained in:
committed by
Corentin Wallez
parent
f280e87f36
commit
ff57ccbcf1
@@ -57,6 +57,7 @@ namespace opengl {
|
||||
#else
|
||||
options.version = 440;
|
||||
#endif
|
||||
options.vertex.flip_vert_y = true;
|
||||
compiler.set_options(options);
|
||||
|
||||
// Rename the push constant block to be prefixed with the shader stage type so that uniform names
|
||||
|
||||
Reference in New Issue
Block a user