You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the 'invalid enumerate' error description means either the format and the data type are not compatible.
Your format is GL_RGB.
Your data type is GL_UNSIGNED_BYTE
So one of these two must be changed.
If you want a quick and easy fix, change GL_UNSIGNED_BYTE to GL_FLOAT. This should kill the 1280 error.
When I using
glReadPixels
to get the rendering results, it returns an error.How should I fix this error?
My environment:
Ubuntu18.04
PyOpenGL 3.1.5
Python 3.6.9
I use ssh with X11 to get remote results.
The code is also very simple. It could render correct results, but return error with
glReadPixels
.Thanks!
The text was updated successfully, but these errors were encountered: