Re: [PyOpenGL-Users] vertex/texture arrays
Brought to you by:
mcfletch
|
From: Jan E. <ch...@in...> - 2002-01-09 08:55:15
|
On Tue, 8 Jan 2002, Frank Raiser wrote:
>I managed to create the strings using the struct module and they worked
>exactly the same as glVertexPointerf and glColorPointerf. But when
>trying to do the same with glTexCoordPointer I got back my beloved
>1282 invalid operation error.
>It's interesting however that I get the very same error when f.ex. producing
>an actual error by not enabling GL_TEXTURE_2D or the texcoord array. This makes
>me think I might have missed something essential? Although I wouldn't know
>what. The texture setup is taken from a working example (well just the 4 lines
>setting it up until glTexImage2D). And I enabled GL_TEXTURE_2D and
>GL_TEXTURE_COORD_ARRAY. Any ideas?
Does anybody know of any way to get better error messages? Or just have it
throw an exception with some more context information? This is probably
not the fault of PyOpenGL, but it's the way OpenGL/Mesa works.
I'm quite sure that all recent versions of Mesa (as Frank most likely
uses) have the glTexCoordPointer() function, so the error (again, I think)
is somewhere when PyOpenGL talks to Mesa?
--
The Emperor had all the qualifications for a corpse except, as it were, the
most vital one.
-- Terry Pratchett, Interesting Times
|