In the documentation for glTexImage2D located at
the documenation specifies that the width and height of
the image must be
2 n + 2 (border),
where n is an integer. I attempted to call the function
with a bitmap matching that criterion and it raised an
"[Errno 1281] invalid value".
I found another OpenGL document somewhere on the web
which stated that the image dimensions must each be
2^n + 2 (border),
where n is an integer. That eliminated the problem.
I'm not sure if it's a typo or a formatting problem in
Log in to post a comment.