setting mipmap level for empty cubemaps

This commit is contained in:
devZoGok
2021-11-20 09:53:06 +02:00
parent cbbe6589ea
commit 0fc6e2af94
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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);