From 65e29604c2c5e935b9596b61584b4101ba5d3af6 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Mon, 24 Dec 2018 08:00:42 -0800 Subject: Fex minor changes --- Graphics/GraphicsEngineOpenGL/src/TextureBaseGL.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/src/TextureBaseGL.cpp b/Graphics/GraphicsEngineOpenGL/src/TextureBaseGL.cpp index 9c0a60e2..f1f169b2 100644 --- a/Graphics/GraphicsEngineOpenGL/src/TextureBaseGL.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/TextureBaseGL.cpp @@ -493,13 +493,13 @@ void TextureBaseGL :: CopyData(DeviceContextGLImpl *pDeviceCtxGL, void TextureBaseGL::TextureMemoryBarrier( Uint32 RequiredBarriers, GLContextState &GLContextState ) { #if GL_ARB_shader_image_load_store - #ifdef DEBUG + #ifdef _DEBUG { constexpr Uint32 TextureBarriers = - GL_TEXTURE_FETCH_BARRIER_BIT | + GL_TEXTURE_FETCH_BARRIER_BIT | GL_SHADER_IMAGE_ACCESS_BARRIER_BIT | - GL_PIXEL_BUFFER_BARRIER_BIT | - GL_TEXTURE_UPDATE_BARRIER_BIT | + GL_PIXEL_BUFFER_BARRIER_BIT | + GL_TEXTURE_UPDATE_BARRIER_BIT | GL_FRAMEBUFFER_BARRIER_BIT; VERIFY( (RequiredBarriers & TextureBarriers) != 0, "At least one texture memory barrier flag should be set" ); VERIFY( (RequiredBarriers & ~TextureBarriers) == 0, "Inappropriate texture memory barrier flag" ); -- cgit v1.2.3