Re: XForms: Problems with Mesa in a glcanvas object (2nd posting)

Steve Lamont (
Tue, 26 May 98 08:41:30 PDT

# To subscribers of the xforms list from (Steve Lamont) :

> /* this part is as simple as I can make it, no transformations, pure
> "identity" matrices. All of the "glXxx" calls return 0, so should
> be OK.
> Then there original was an "if" to see IF there's anything to draw
> but I'll leave that away for now (it has to test and get the data
> from the malloc'ed chain's of memory blocks) */
> /* now we start drawing */
> glBegin(GL_LINE_STRIP);
> fout = glGetError();
> The "glBegin" _always_ returns INVALID_OPERATION.
> So I never get to the real drawing part (which is actually rather simple).

Does the program draw anything at all?

Do you have a corresponding glEnd() call? If you don't and you enter
the callback a second time, you're going to get the GL_INVALID_OPERATION

That's about all I can think of that would cause the error you report.

To unsubscribe, send the message "unsubscribe" to or see
XForms Home Page:
List Archive: