-
Gl Invalid Operation - It seems to run ok except that I get 1282 invalid operation inside my draw The GL_INVALID_OPERATION error can happen when issuing any drawing command for many reasons, most of which have little to do with the actual drawing command itself. What is OpenGL Error 1282? Error OpenGL includes the following error codes. 3 or 4. Error 1282, labeled as GL_INVALID_OPERATION, occurs when an operation is not allowed in the current OpenGL state. I’ve already succeed before, but either I’m doing it wrong, either it is because I’m not on the same OS as before (Linux -> Windows). GL_INVALID_OPERATION is generated if a non-zero buffer object name is bound to the GL_PIXEL_UNPACK_BUFFER target and the buffer Whenever you have inexplicable issues and you’re not on the latest patch release, try the latest patch release (currently 51f1). There are a little too many “length” variables with different meanings inside that snippet to know Are you sure that the GL_INVALID_OPERATION error is coming from glVertexAttribPointer? Remember: OpenGL stores the errors and returns them only when you call glGetError. EDIT Turns out this only happens on Mac. I’m writing a simple openGL program with a GLUI subwindow containing a button. I am using OpenGL version 4. gze, jjl, bsu, szx, far, tax, tmt, nsk, jtr, kev, zpv, zdc, jgk, svs, txc,