From 0fc6e2af94fe48ea150f2e85ca059608388ee2dd Mon Sep 17 00:00:00 2001 From: devZoGok Date: Sat, 20 Nov 2021 09:53:06 +0200 Subject: [PATCH] setting mipmap level for empty cubemaps --- texture.cpp | 3 ++- texture.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/texture.cpp b/texture.cpp index d0c30f1..c5d679d 100755 --- a/texture.cpp +++ b/texture.cpp @@ -85,8 +85,9 @@ namespace vb01{ } } - Texture::Texture(int width, bool depth){ + Texture::Texture(int width, bool depth, int mipmapLevel){ this->width = width; + this->mipmapLevel = mipmapLevel; texture = new u32; createCubemap(true, false); diff --git a/texture.h b/texture.h index 6084af9..c319dc2 100755 --- a/texture.h +++ b/texture.h @@ -15,7 +15,7 @@ namespace vb01{ ~Texture(); Texture(int, int, bool = true); Texture(std::string[], int, bool, int = 0, bool = false); - Texture(int, bool = true); + Texture(int, bool = true, int = 0); Texture(FT_Face&, char); void select(int = 0, int = 0); void update(int = 0);