From 7a6588f12352992eee76149151ecab7f1f2cfb3f Mon Sep 17 00:00:00 2001 From: devZoGok Date: Thu, 10 Feb 2022 19:56:43 +0200 Subject: [PATCH] getter removal --- mesh.cpp | 3 +-- texture.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/mesh.cpp b/mesh.cpp index c172726..5089644 100755 --- a/mesh.cpp +++ b/mesh.cpp @@ -280,8 +280,7 @@ namespace vb01{ */ glBindFramebuffer(GL_FRAMEBUFFER, preFilterFramebuffer); - int width = prefilterMap->getWidth(); - glViewport(0, 0, width, width); + glViewport(0, 0, preFilterMapSize, preFilterMapSize); Root *root = Root::getSingleton(); Mesh *skybox = root->getSkybox(); diff --git a/texture.h b/texture.h index 51cfe58..e74bc56 100755 --- a/texture.h +++ b/texture.h @@ -22,8 +22,6 @@ namespace vb01{ void animate(float, KeyframeChannel); inline u32* getTexture(int i = 0){return &(texture[i]);} inline std::string* getPath(){return paths;} - inline int getWidth(){return width;} - inline int getHeight(){return height;} inline int getNumFrames(){return numFrames;} inline int getMipmapLevel(){return mipmapLevel;} inline float getMixRatio(){return mixRatio;}