GLSL preprocessor evaluates both #if and #elif

Fixed Issue #216674


May 15, 2014
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

Attempt to compile the following GLSL shader:

#if 1
  #define foo 0
#elif 1
  #define foo 1
void main() {}

Live example:

Expected Results:

The expected behavior is a correct implementation of the #if pragma, like other browsers. At the very least, the compiler should not crash.

Actual Results:


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Rico M.”

      Changed Assigned To from “Rico M.” to “Daniel L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Daniel L.” to “IE F.”

      Changed Status from “Confirmed” to “Fixed”

      Changed Assigned To from “IE F.” to “Kurt C.”

      Changed Assigned To from “Kurt C.” to “IE F.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in