cleanup
This commit is contained in:
@@ -420,20 +420,18 @@ void MovieTexture_Generic::Update(float fDeltaTime)
|
|||||||
int iMax = 4;
|
int iMax = 4;
|
||||||
while( --iMax )
|
while( --iMax )
|
||||||
{
|
{
|
||||||
{
|
/* If we don't have a frame decoded, decode one. */
|
||||||
/* If we don't have a frame decoded, decode one. */
|
if( m_ImageWaiting == FRAME_NONE )
|
||||||
if( m_ImageWaiting == FRAME_NONE )
|
DecodeFrame();
|
||||||
DecodeFrame();
|
|
||||||
|
|
||||||
/* If we have a frame decoded, see if it's time to display it. */
|
/* If we have a frame decoded, see if it's time to display it. */
|
||||||
if( m_ImageWaiting == FRAME_DECODED )
|
if( m_ImageWaiting == FRAME_DECODED )
|
||||||
{
|
{
|
||||||
float fTime = CheckFrameTime();
|
float fTime = CheckFrameTime();
|
||||||
if( fTime > 0 )
|
if( fTime > 0 )
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
m_ImageWaiting = FRAME_WAITING;
|
m_ImageWaiting = FRAME_WAITING;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Note that if there's an image waiting, we *must* signal m_BufferFinished, or
|
/* Note that if there's an image waiting, we *must* signal m_BufferFinished, or
|
||||||
|
|||||||
Reference in New Issue
Block a user