Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

HTML5 - glGetUniformLocation #41

Closed
leftnoodle opened this issue Oct 18, 2013 · 1 comment
Closed

HTML5 - glGetUniformLocation #41

leftnoodle opened this issue Oct 18, 2013 · 1 comment

Comments

@leftnoodle
Copy link

Doesn't return integer but returns [object WebGLUniformLocation]

@blitz-research
Copy link
Owner

This is by design/a compromise...

Since JS is typeless, you can freely assign 'objects' to 'int vars' (as long as you don't do anything int-ish with them) and pass them to glUniform etc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants