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;