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:
Jonas Kulla 2013-09-06 14:56:30 +02:00
parent abc927c91d
commit 6c7d751dbd
5 changed files with 11 additions and 13 deletions

View file

@ -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();