/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Dali
{
+namespace
+{
+
+const uint32_t INITIAL_FRAMEBUFFER_STATE = 0u;
+
+}
+
namespace Internal
{
{
DALI_LOG_ERROR("FrameBuffer already exists%d \n", id );
// reset its state
- state->mState = GetInitialFrameBufferState();
+ state->mState = INITIAL_FRAMEBUFFER_STATE;
continue;
}
- FrameBufferState newFrameBuffer( frameBuffers[i], GetInitialFrameBufferState() );
+ FrameBufferState newFrameBuffer( frameBuffers[i] );
mFrameBufferStates.PushBack( newFrameBuffer );
}
}
DALI_LOG_ERROR("FrameBuffer not found %d \n", frameBufferId);
}
-unsigned int FrameBufferStateCache::GetInitialFrameBufferState()
-{
- return COLOR_BUFFER_CLEAN | DEPTH_BUFFER_CLEAN | STENCIL_BUFFER_CLEAN;
-}
-
-
} // namespace Internal
} // namespace Dali
/**
* Constructor
*/
- FrameBufferState( GLuint id, unsigned int state)
+ FrameBufferState( GLuint id )
:mId( id ),
- mState( state )
+ mState( 0 )
{
}
GLuint mId; ///< Frame buffer id
*/
void DeleteFrameBuffer( GLuint frameBufferId );
- /**
- * @brief Get the default state of a frame buffer, before it's used
- * @return initial state
- */
- unsigned int GetInitialFrameBufferState();
-
FrameBufferStateCache( const FrameBufferStateCache& ); ///< undefined copy constructor
FrameBufferStateCache& operator=( const FrameBufferStateCache& ); ///< undefined assignment operator