Horde3D

Next-Generation Graphics Engine
It is currently 18.04.2024, 19:47

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 15.03.2010, 16:58 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
I was told that with optimization enabled Horde3D crashes, when I looked into the problem, I found out that valgrind does not show any suspicious memory errors (well, 2-3 things that might cause problems but don't look as if they contributed to the problem).

I so far could track the problem down to a crash in PipelineResource::releaseRenderTargets() (somewhere releaseRenderBuffer() there it crashes), which happens because the framebuffer created is reported as incomplete by OpenGL ("if( status != GL_FRAMEBUFFER_COMPLETE_EXT ) return 0;" fails).

Just wanted to leave a notice here, I'm probably now going through the warnings GCC outputs with -Wall -Wextra, maybe sth there solves it.


Top
 Profile  
Reply with quote  
PostPosted: 15.03.2010, 18:43 
Offline

Joined: 15.06.2008, 11:21
Posts: 166
Location: Germany
Fixed as of
http://bitbucket.org/mgottschlag/horde3 ... de49a0d9d/

Please review and apply.

This fixes at least one bug in utImage.cpp (ambiguous else used) and critical pointer conversions in utMath.h. Possibly fixes more.

Btw: Is there a bug in utImage.cpp:2950ff? read_next_pixel seems always to be 1?


Fixed repositories:
http://bitbucket.org/mgottschlag/horde3dext
http://bitbucket.org/mgottschlag/horde3d


Top
 Profile  
Reply with quote  
PostPosted: 16.03.2010, 09:10 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Thanks a lot. The initialization warnings was something I wanted to fix for a long time. I merged your code with the public trunk!


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


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:  
cron
Powered by phpBB® Forum Software © phpBB Group