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)
|
BOOL Framebuffer::Initialize(GraphicsDevice *graphicsDevice)
|
||||||
{
|
{
|
||||||
STACK_TRACE;
|
STACK_TRACE;
|
||||||
if (!GraphicsContextResource::Initialize(graphicsDevice))
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
ASSERT(m_framebufferName == 0);
|
ASSERT(m_framebufferName == 0);
|
||||||
if (m_framebufferName != 0)
|
if (m_framebufferName != 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (!GraphicsContextResource::Initialize(graphicsDevice))
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
CreateFramebuffer();
|
CreateFramebuffer();
|
||||||
|
|
||||||
m_viewContext = NULL;
|
m_viewContext = NULL;
|
||||||
|
|
Reference in a new issue