Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 3956 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: 1033
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 (79 views)
2018-06-10 19:43:48

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

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

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

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

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

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

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

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

Solater (177 views)
2018-03-17 05:04:08
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!