Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions renderdoc/driver/gl/gl_shaderdebug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2165,8 +2165,8 @@ precision highp float;
#extension GL_KHR_shader_subgroup_quad : require
#endif

// bool signature elements get reflected as ints, make macros for their access to cast to int
#define gl_FrontFacing (gl_FrontFacing ? 1u : 0u)
// bool-to-uint conversion is explicit at each use site; no macro to avoid
// contaminating the user's shader code (gl_FrontFacing must remain bool)
#define gl_HelperInvocation (gl_HelperInvocation ? 1u : 0u)

)EOSHADER";
Expand Down Expand Up @@ -2522,7 +2522,7 @@ void main()
rd_sample = gl_SampleID;
#endif

isFrontFace = gl_FrontFacing;
isFrontFace = gl_FrontFacing ? 1u : 0u;

#endif

Expand Down
Loading