From 11916fefcc35c6cfbb62aa87d747bc79c8e53b95 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 30 Apr 2019 07:51:43 -0700 Subject: Fixed bug in creating framebuffer for a cubemap face in OpenGL --- Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp b/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp index d979002e..d07e872a 100644 --- a/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp @@ -242,9 +242,9 @@ void TextureCube_OGL::AttachToFramebuffer( const TextureViewDesc& ViewDesc, GLen // GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, // GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, // or GL_TEXTURE_2D_MULTISAMPLE. - glFramebufferTexture2D( GL_DRAW_FRAMEBUFFER, AttachmentPoint, m_GlTexture, CubeMapFaceBindTarget, ViewDesc.MostDetailedMip ); + glFramebufferTexture2D( GL_DRAW_FRAMEBUFFER, AttachmentPoint, CubeMapFaceBindTarget, m_GlTexture, ViewDesc.MostDetailedMip ); CHECK_GL_ERROR( "Failed to attach texture cube face to draw framebuffer" ); - glFramebufferTexture2D( GL_READ_FRAMEBUFFER, AttachmentPoint, m_GlTexture, CubeMapFaceBindTarget, ViewDesc.MostDetailedMip ); + glFramebufferTexture2D( GL_READ_FRAMEBUFFER, AttachmentPoint, CubeMapFaceBindTarget, m_GlTexture, ViewDesc.MostDetailedMip ); CHECK_GL_ERROR( "Failed to attach texture cube face to read framebuffer" ); } else -- cgit v1.2.3