Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jun 20, 2013 2:51 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 22, 2010 5:54 am 
Offline

Joined: Fri Jan 22, 2010 5:31 am
Posts: 1
Problem with slick v270. TextureImpl.release() calls InternalTextureLoader.clear(String name) with original resource reference, but InternalTextureLoader.getTexture(...) stores modified references (with alpha and flipping data added).
So, the following code fails to render image:

Code:
Image i1 = new Image("myImage.jpg");
i1.destroy();//texture is unloaded from opengl, but remains in internalTextureLoader
Image i2 = new Image("myImage.jpg");//gets invalid texture from cache
i2.draw();//draws white rectangle in my case


Fix: TextureImpl should somehow store modified resource name and use it in release method.


Top
 Profile  
 
PostPosted: Mon Jan 25, 2010 2:10 pm 
Offline

Joined: Tue Jun 02, 2009 3:33 pm
Posts: 33
Shaded wrote:
Problem with slick v270. TextureImpl.release() calls InternalTextureLoader.clear(String name) with original resource reference, but InternalTextureLoader.getTexture(...) stores modified references (with alpha and flipping data added).
So, the following code fails to render image:

Code:
Image i1 = new Image("myImage.jpg");
i1.destroy();//texture is unloaded from opengl, but remains in internalTextureLoader
Image i2 = new Image("myImage.jpg");//gets invalid texture from cache
i2.draw();//draws white rectangle in my case


Fix: TextureImpl should somehow store modified resource name and use it in release method.


Exactly, I'm having the same problem.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 04, 2010 8:08 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Resolved in SVN

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group