Showing the changes to interface/src/renderer/TextureCache.cpp (1 of 4 files). Show all
Unified · Split
| @@ -192,6 +192,10 @@ QOpenGLFramebufferObject* TextureCache::getShadowFramebufferObject() { · 191 unmodified lines | ||
| 192 | 192 | 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, 0); |
| 193 | 193 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); |
| 194 | 194 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); |
| 195 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER); | |
| 196 | + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER); | |
| 197 | + const float DISTANT_BORDER[] = { 1.0f, 1.0f, 1.0f, 1.0f }; | |
| 198 | + glTexParameterfv(GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, DISTANT_BORDER); | |
| 195 | 199 | glBindTexture(GL_TEXTURE_2D, 0); |
| 196 | 200 | |
| 197 | 201 | _shadowFramebufferObject->bind(); |