From 207c2ee24422cf3df3834967dd8585f286f896ed Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 4 Feb 2021 17:34:04 +0100 Subject: [PATCH] opengl mipmap fix --- src/gl/gl3raster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/gl3raster.cpp b/src/gl/gl3raster.cpp index db21a63..8e79d92 100644 --- a/src/gl/gl3raster.cpp +++ b/src/gl/gl3raster.cpp @@ -111,7 +111,7 @@ rasterCreateTexture(Raster *raster) if(raster->format & Raster::MIPMAP){ int w = raster->width; int h = raster->height; - natras->numLevels = 0; + natras->numLevels = 1; while(w != 1 || h != 1){ natras->numLevels++; if(w > 1) w /= 2;