-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rlgl] glVertexAttribPointer()
error client-side with WebGL 2.0 (OpenGL ES 3.0)
#4330
Comments
Okay it's due to the flag FULL_ES from emscripten |
We got these warning when removed the -s FULL_ES2=1 (or FULL_ES3=1) that transform themselves to errors 128WebGL: INVALID_VALUE: vertexAttribPointer: index out of range |
this works :
this not (cause of previous warning from enableVertexAtribArray and so) :
-> the way rlgl manage shaders is not consistent that's why for the second example I also tried to use opengl with rlgl (also tried only rlgl but got same warnings) for now I'm going to use pure opengl cause I really need the opengl 300es, If someone can have a look and correct what I found or anything I'm here |
glVertexAttribPointer()
error client-side with WebGL 2.0 (OpenGL ES 3.0)
@tomlikesnakes Thanks for reporting! Actually, OpenGL ES 3.0 has been added recently as a backend GL option to raylib and it has not been widely tested. |
Hello,
There is an error when targetting webgl2 and using whatever Draw function you want (like DrawRectangle/cube/text etc)
I did a very minimal example here :
compilation flag :
I tried with only full_es2, with different things for memory and so.
For this kind of things it is not really problematic but for my other project I need to create vertex buffer and go with opengl (not rlgl) and use shaders for a cube, and i need the webgl2/opengl300es for my futures things on the project
The text was updated successfully, but these errors were encountered: