GLSL preprocessor evaluates both #if and #elif

Fixed Issue #216674

Details

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

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Attempt to compile the following GLSL shader:

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

Live example: http://jsbin.com/jifazuyu

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:

Attachments

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