Closed X-Ryl669 closed 7 years ago
Thanks for reporting and an actual code diff. Upon reading the OpenGL documentation (https://www.opengl.org/sdk/docs/man/html/glPixelStore.xhtml) I noticed that there are actually two valid signatures for glPixelStore
: one with int and one with float. The documentation states, that the float interface is used to round the passed float to the nearest integer value or pass it as boolean (where 0.0 is treated as false), depending on the enumeration value of pname
.
So I extended the interface instead of replacing it. You can have a look at it in PR #326.
Currenty, pixelStore is defined as AbstractState::pixelStore(gl::GLenum, gl::GLboolean) which is wrong, IMHO, since, for example, pixelStore(GL_UNPACK_ROW_LENGTH) expect an integer (likely large for big textures and not a boolean stored on an unsigned char).
It should read AbstractState::pixelStore(gl::GLenum, gl::GLint) instead.