|
From: <axl...@us...> - 2010-05-19 22:07:12
|
Revision: 743
http://hgengine.svn.sourceforge.net/hgengine/?rev=743&view=rev
Author: axlecrusher
Date: 2010-05-19 22:07:06 +0000 (Wed, 19 May 2010)
Log Message:
-----------
fix bug that keeps textures from rendering
Modified Paths:
--------------
Mercury2/src/Texture.cpp
Modified: Mercury2/src/Texture.cpp
===================================================================
--- Mercury2/src/Texture.cpp 2010-05-19 22:05:52 UTC (rev 742)
+++ Mercury2/src/Texture.cpp 2010-05-19 22:07:06 UTC (rev 743)
@@ -104,9 +104,11 @@
{
if (GetLoadState() == LOADED)
{
- printf( "Rendering Texture (%s), but state is: %d\n", m_path.c_str(), GetLoadState() );
+ printf( "Rendering Texture (%s), but state is: %d\n", m_path.c_str(), GetLoadState() );
LoadFromRaw();
SetLoadState(NONE);
+ //force rebind since we were used before
+ if (m_lastBound[m_numActiveTextures] == this) m_lastBound[m_numActiveTextures] = NULL;
}
BindTexture();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|