emscripten-core/emscripten

Behavioral difference in glUniform functions

Open

#16,367 opened on Feb 23, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (27,361 stars) (3,519 forks)batch import
GLdocsgood first bughelp wanted

Description

Version of emscripten/emsdk: 2.0.32

glUniform functions in OpenGL ES take a regular GLuint. A literal value can be passed. Emscripten will pass undefined if glGetUniformLocation was not used. Emscripten's behavior is not wrong IMO, but it would be good to mention this somewhere as a behavioral difference.

Contributor guide