Browse Source

fix opengl cubemap display

AzaezelX 3 years ago
parent
commit
bce14ab63f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/gfx/gl/gfxGLDevice.cpp

+ 3 - 0
Engine/source/gfx/gl/gfxGLDevice.cpp

@@ -187,6 +187,9 @@ void GFXGLDevice::initGLState()
 
    //enable sRGB
    glEnable(GL_FRAMEBUFFER_SRGB);
+
+   //enable seamless cubemapping
+   glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
 }
 
 void GFXGLDevice::vsyncCallback()