Remove 'Default' FBO binding (only allow 'Read' and 'Draw')
Also make code more verbose by removing default mode parameter value to 'FBO::bind'
This commit is contained in:
parent
abc927c91d
commit
6c7d751dbd
5 changed files with 11 additions and 13 deletions
|
|
@ -63,7 +63,7 @@ struct BitmapPrivate
|
|||
|
||||
void bindFBO()
|
||||
{
|
||||
FBO::bind(tex.fbo);
|
||||
FBO::bind(tex.fbo, FBO::Draw);
|
||||
}
|
||||
|
||||
void pushSetViewport() const
|
||||
|
|
@ -418,7 +418,7 @@ void Bitmap::hueChange(int hue)
|
|||
shader.setHueAdjust(hueAdj);
|
||||
shader.setInputTexture(p->tex.tex);
|
||||
|
||||
FBO::bind(newTex.fbo);
|
||||
FBO::bind(newTex.fbo, FBO::Draw);
|
||||
TEX::bindMatrix(width(), height());
|
||||
p->pushSetViewport();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue