www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: AGP on October 04, 2017, 03:30:02 am

Title: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: AGP on October 04, 2017, 03:30:02 am
Is this a jpct error? If so, what is it? I'm using the software renderer here.
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: EgonOlsen on October 04, 2017, 10:13:05 am
It seems to be. Can you be more specific in what exactly triggers this?
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: AGP on October 05, 2017, 06:38:58 pm
I've tried replicating it during the game. Invariably, I will get it as I close it. Often during, but I can't seem to  cause it to happen while running. But whenever I close, there it is.
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: EgonOlsen on October 05, 2017, 10:17:17 pm
Are you doing something like flush() on the TextureManager?
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: AGP on October 05, 2017, 11:35:50 pm
No. Do you know what I'm almost certain to be one of the causes? FrameBuffer.dispose().
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: EgonOlsen on October 06, 2017, 10:06:39 am
Are you doing the dispose in another thread then?
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: AGP on October 06, 2017, 08:36:10 pm
Same thread as the gameloop and just before Frame.dispose().
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: EgonOlsen on October 09, 2017, 12:55:43 pm
I don't see how this can happen if everything happens in the same thread. Where does the actual rendering happen then?
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: AGP on October 12, 2017, 02:57:38 am
Code: [Select]
     private void loop() {
....
     buffer.clear(java.awt.Color.black);
     theWorld.renderScene(buffer);
     theWorld.draw(buffer);
     buffer.displayGLOnly();
     canvas.repaint();
     Thread.yield();
}
buffer.dispose();//CAUSES THE PROBLEM
this.dispose();
buffer.disableRenderer(IRenderer.RENDERER_OPENGL);
System.exit(0);
Title: Re: ERROR: Texture '--*--BlittingWrapper_internal--*--' not found!
Post by: EgonOlsen on October 12, 2017, 07:47:52 am
Try to disable the renderer before disposing it.