minor swap of order of validation checks
This commit is contained in:
parent
c8b2f73d9a
commit
98ff932880
|
@ -25,13 +25,13 @@ Framebuffer::Framebuffer()
|
|||
BOOL Framebuffer::Initialize(GraphicsDevice *graphicsDevice)
|
||||
{
|
||||
STACK_TRACE;
|
||||
if (!GraphicsContextResource::Initialize(graphicsDevice))
|
||||
return FALSE;
|
||||
|
||||
ASSERT(m_framebufferName == 0);
|
||||
if (m_framebufferName != 0)
|
||||
return FALSE;
|
||||
|
||||
if (!GraphicsContextResource::Initialize(graphicsDevice))
|
||||
return FALSE;
|
||||
|
||||
CreateFramebuffer();
|
||||
|
||||
m_viewContext = NULL;
|
||||
|
|
Reference in a new issue