From 8a7f1e9264aa95534af5f3e097c64d305ee91529 Mon Sep 17 00:00:00 2001 From: degasus Date: Wed, 16 Jan 2013 19:37:57 +0100 Subject: [PATCH] workaround for older ati drivers --- Source/Plugins/Plugin_VideoOGL/Src/Render.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp index 1e05c0b0b8..5f8c558a96 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp @@ -450,6 +450,11 @@ Renderer::Renderer() glScissor(0, 0, GetTargetWidth(), GetTargetHeight()); glBlendColor(0, 0, 0, 0.5f); glClearDepth(1.0f); + + // this is a hack to work around an ati driver issue. + // usually this shouldn't be needed (and isn't allowed in core) + // but else glGenerateMipmaps wouldn't work always + glEnable(GL_TEXTURE_2D); UpdateActiveConfig();