Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (854)
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 4079 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: 1053
Projects: 3
Exp: 20 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: 508
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: 508
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  
 
 

 
EgonOlsen (1303 views)
2018-06-10 19:43:48

EgonOlsen (1161 views)
2018-06-10 19:43:44

EgonOlsen (900 views)
2018-06-10 19:43:20

DesertCoockie (1301 views)
2018-05-13 18:23:11

nelsongames (1106 views)
2018-04-24 18:15:36

nelsongames (1338 views)
2018-04-24 18:14:32

ivj94 (2079 views)
2018-03-24 14:47:39

ivj94 (1231 views)
2018-03-24 14:46:31

ivj94 (2213 views)
2018-03-24 14:43:53

Solater (798 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!