minor swap of order of validation checks

This commit is contained in:
Gered 2013-04-01 18:02:14 -04:00
parent c8b2f73d9a
commit 98ff932880

View file

@ -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;