Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (748)
Games in Android Showcase (226)
games submitted by our members
Games in WIP (834)
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  
  Crash during java error reporting, happens at "J org.lwjgl.opengl.GL11.nglBind"  (Read 3596 times)
0 Members and 1 Guest are viewing this topic.
Offline Suds

Senior Newbie




Lead Developer, DefeatThePurpose Entertainment


« Posted 2012-03-05 04:35:12 »

Log is here: http://pastebin.com/4sgBXZhe

I cant seem to stop this crash from occurring. The code that binds the texture looks like this:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
public void render() {
     
      glPushMatrix();
     
     
     
      glTranslatef(_position.getX(), _position.getY(), _position.getZ());
     
      glRotatef(_rotation.getX(), 1.0f, 0.0f, 0.0f);
      glRotatef(_rotation.getY(), 0.0f, 1.0f, 0.0f);
      glRotatef(_rotation.getZ(), 0.0f, 0.0f, 1.0f);
     
      glScalef(_scale, _scale, _scale);
     
      _texture.bind();
      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
      glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
      glCallList(_listID);
     
      for(Object3D model : _children)
      {
         model.render();
      }
     
      glPopMatrix();
}

Offline Suds

Senior Newbie




Lead Developer, DefeatThePurpose Entertainment


« Reply #1 - Posted 2012-03-05 05:43:24 »

Okay, just removed the call to _texture.bind(); expecting something to the effect of "well, the last bound texture should be drawn all over my models". No such issue. Models draw perfectly, and the crash doesn't occur any more. Looks like some additional learning might be necessary.

Offline princec

« JGO Spiffy Duke »


Medals: 995
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2012-03-05 08:34:32 »

This crash should never occur; you have broken video drivers (oh, look, ATI, surprise surprise). Might be fixable just by finding newer ones. Or buying Nvidia and never going near ATI again.

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline theagentd
« Reply #3 - Posted 2012-03-05 09:33:46 »

This crash should never occur; you have broken video drivers (oh, look, ATI, surprise surprise). Might be fixable just by finding newer ones. Or buying Nvidia and never going near ATI again.

Cas Smiley
Off topic: Wait for Kepler.

Myomyomyo.
Offline ra4king

JGO Kernel


Medals: 506
Projects: 3
Exp: 5 years


I'm the King!


« Reply #4 - Posted 2012-03-05 12:25:04 »

This crash should never occur; you have broken video drivers (oh, look, ATI, surprise surprise). Might be fixable just by finding newer ones. Or buying Nvidia and never going near ATI again.

Cas Smiley
Off topic: Wait for Kepler.
Offtopic: Anyone interested in buying a lightly used GTX 580? I want to be first in line for a Kepler Grin

Offline theagentd
« Reply #5 - Posted 2012-03-05 12:50:44 »

This crash should never occur; you have broken video drivers (oh, look, ATI, surprise surprise). Might be fixable just by finding newer ones. Or buying Nvidia and never going near ATI again.

Cas Smiley
Off topic: Wait for Kepler.
Offtopic: Anyone interested in buying a lightly used GTX 580? I want to be first in line for a Kepler Grin
If it fits my laptop I'd give an arm for it. >_>

Myomyomyo.
Offline ra4king

JGO Kernel


Medals: 506
Projects: 3
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2012-03-05 19:02:47 »

This crash should never occur; you have broken video drivers (oh, look, ATI, surprise surprise). Might be fixable just by finding newer ones. Or buying Nvidia and never going near ATI again.

Cas Smiley
Off topic: Wait for Kepler.
Offtopic: Anyone interested in buying a lightly used GTX 580? I want to be first in line for a Kepler Grin
If it fits my laptop I'd give an arm for it. >_>
Alright, please make a clean cut and make sure the arm is well packaged when sending Wink

Pages: [1]
  ignore  |  Print  
 
 

 
xxMrPHDxx (332 views)
2017-12-31 17:17:51

xxMrPHDxx (109 views)
2017-12-31 17:15:51

xxMrPHDxx (158 views)
2017-12-28 18:11:33

Ecumene (340 views)
2017-09-30 02:57:34

theagentd (504 views)
2017-09-26 18:23:31

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

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

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

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

Archive (1346 views)
2017-04-27 17:45:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

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
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!