Skip to content

Commit 9e3dcad

Browse files
committed
Fix typo
1 parent 8fea35a commit 9e3dcad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graphics/GraphicsEngineOpenGL/src/TextureBaseGL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ void TextureBaseGL::CreateViewInternal(const TextureViewDesc& OrigViewDesc, ITex
494494
DEV_CHECK_GL_ERROR_AND_THROW("Failed to create texture view");
495495
pViewOGL->SetBindTarget(GLViewTarget);
496496

497-
if(GLViewFormat == TEX_FORMAT_X24_TYPELESS_G8_UINT || GLViewFormat == TEX_FORMAT_X32_TYPELESS_G8X24_UINT)
497+
if(ViewDesc.Format == TEX_FORMAT_X24_TYPELESS_G8_UINT || ViewDesc.Format == TEX_FORMAT_X32_TYPELESS_G8X24_UINT)
498498
{
499499
RefCntAutoPtr<DeviceContextGLImpl> pDeviceContext = pDeviceGLImpl->GetImmediateContext(0);
500500
VERIFY(pDeviceContext, "Immediate device context has been destroyed");

0 commit comments

Comments
 (0)