From 37ba9bf3c3aa252594c2be2e6993c8b47e26b068 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Thu, 16 Aug 2018 17:53:39 +0100 Subject: [PATCH] Mark mipmap levels as complete when generated --- GL/framebuffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GL/framebuffer.c b/GL/framebuffer.c index 70d58a1..1034c1a 100644 --- a/GL/framebuffer.c +++ b/GL/framebuffer.c @@ -248,6 +248,8 @@ void APIENTRY glGenerateMipmapEXT(GLenum target) { } } + tex->mipmap |= (1 << i); + prevWidth = thisWidth; prevHeight = thisHeight; }