renderbuffers are usable for various resolutions

This commit is contained in:
devZoGok
2021-10-18 19:08:26 +03:00
parent 9e6b5a995a
commit e5ddfb5e47
4 changed files with 20 additions and 24 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ namespace vb01{
glGenFramebuffers(1,&FBO);
glBindFramebuffer(GL_FRAMEBUFFER,FBO);
Texture *texture=new Texture();
Texture *texture=new Texture(width,height,false);
glFramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,*(texture->getTexture()),0);
/*