Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (780)
Games in Android Showcase (233)
games submitted by our members
Games in WIP (857)
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 4248 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.

Online princec

« JGO Spiffy Duke »


Medals: 1061
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  
 
 

 
hadezbladez (761 views)
2018-11-16 13:46:03

hadezbladez (394 views)
2018-11-16 13:41:33

hadezbladez (758 views)
2018-11-16 13:35:35

hadezbladez (200 views)
2018-11-16 13:32:03

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

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

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

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

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

nelsongames (2660 views)
2018-04-24 18:14:32
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!