diff --git a/src/graphics/render_skybox.cpp b/src/graphics/render_skybox.cpp index 3e3c37809..8fcd5c9a6 100644 --- a/src/graphics/render_skybox.cpp +++ b/src/graphics/render_skybox.cpp @@ -448,6 +448,7 @@ GLuint generateCubeMapFromTextures(const std::vector &texture else glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_SRGB_ALPHA, size, size, 0, GL_BGRA, GL_UNSIGNED_BYTE, (GLvoid*)rgba[i]); } + glGenerateMipmap(GL_TEXTURE_CUBE_MAP); for (unsigned i = 0; i < 6; i++) delete[] rgba[i]; return result;