Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (736)
Games in Android Showcase (223)
games submitted by our members
Games in WIP (813)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  DebugGL and GLContext  (Read 1463 times)
0 Members and 1 Guest are viewing this topic.
Offline mantesat

Junior Devvie




Java games rock!


« Posted 2006-11-01 12:02:42 »

Hi all,

I'm building an app where a series of gl drawing commands can be called by two different viewers, so as to render something in both a GLCanvas and a GLPbuffer (which shares the same context with the GLCanvas). I was getting some errors, and I used the DebugGL object to find out wht was going wrong. With every render cycle, a new DebugGL object was created, and subsequent rendering commands were issued using the new DebugGL object. I found my errors, but I noticed that when using the DebugGL object I got a GLException " This GL object is being incorrectly used with a different GLContext than that which created it". I checked the DebugGL code, and this exception is thrown if the context of the DebugGL object is no current. How can this happen since the DebugGL object is created from scratch each time something is rendered? Why I'm not getting the same error when using GL instead of DebugGL?
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #1 - Posted 2006-11-01 21:42:09 »

I suspect you may have gotten confused about which GL object you were using. In e.g. the Gears source code we create and install the DebugGL in the init() method of the GLEventListener, which is probably the most correct and efficient place to do it. The base GL class does no error checking in this area, only the DebugGL.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
cybrmynd (120 views)
2017-08-02 12:28:51

cybrmynd (143 views)
2017-08-02 12:19:43

cybrmynd (138 views)
2017-08-02 12:18:09

Sralse (154 views)
2017-07-25 17:13:48

Archive (623 views)
2017-04-27 17:45:51

buddyBro (732 views)
2017-04-05 03:38:00

CopyableCougar4 (1258 views)
2017-03-24 15:39:42

theagentd (1238 views)
2017-03-24 15:32:08

Rule (1215 views)
2017-03-19 12:43:22

Rule (1268 views)
2017-03-19 12:42:17
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!