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

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 26 May 98 08:41:30 PDT

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (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
error.

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

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/