GIDForums  

Go Back   GIDForums > Computer Programming Forums > OpenGL Programming
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 03-Jun-2004, 09:03
mvt mvt is offline
New Member
 
Join Date: Jun 2004
Location: Flordia
Posts: 2
mvt is on a distinguished road

OpenGL always reports error


The following code has been reduced to the minimum necessary to produce the error:

CPP / C++ / C Code:
#include <iostream>
#include <FL/Fl.h>
#include <FL/gl.h>

using namespace std;

int main(int argc, char** argv) {
  cout << "error value = " << glGetError() << endl;
  cout << "error value = " << glGetError() << endl;
  cout << "error value = " << glGetError() << endl;
  cout << "error value = " << glGetError() << endl;
  cout << "error value = " << glGetError() << endl;
  cout << "error value = " << glGetError() << endl;
  system("pause");
  return 0;
}

The output is:
Code:
error value = 1282 error value = 1282 error value = 1282 error value = 1282 error value = 1282 error value = 1282 Press any key to continue . . .


My full program produces the desired 3D drawing, except with some texture mapping errors that I am trying to locate using glGetError(). However, no matter where I make the call I get this same error, 1282 = 0x502 = GL_INVALID_OPERATION. Even if I make an OpenGL call that I know is in error and should produce a different error code, I still get this one.

Any ideas?

Thanks,
Mark
  #2  
Old 03-Jun-2004, 09:07
mvt mvt is offline
New Member
 
Join Date: Jun 2004
Location: Flordia
Posts: 2
mvt is on a distinguished road
I forgot to mention:
I am using the DevC++ compiler environment under WindowsXP and using the FLTK GUI toolkit.
  #3  
Old 04-Jun-2004, 06:42
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
From what little I've seen on this, this is one of those vague errors that pop up for a multitude of reasons. I can suggest is to try updating your graphics drivers, as I've heard some drivers don't get on well with gl.

Invalid Operation errors sound like you're calling something inside glBegin() and glEnd()that you shouldn't be, or somethign outside that should be inside.

I'm afraid I know nothing else to help, so I suggest you visit the www.opengl.org for more expert advice! Sorry
GF
 
 

Recent GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in ukrspp21 MySQL / PHP Forum 31 04-Jul-2006 21:41
Operator Overloading: << aaroncohn C++ Forum 36 07-Dec-2004 19:22
Visual C++ 6 Compiler error vip3r C++ Forum 2 13-Apr-2004 14:34
compilation error cameron C++ Forum 18 20-Feb-2004 00:41
[script] E-mail webmaster error page BobbyDouglas PHP Code Library 0 19-Aug-2003 20:10

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 00:53.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.