Bitmap: Fix renaming issue in RGSS2 code
This commit is contained in:
parent
a817b31e7c
commit
226e860c38
|
@ -537,7 +537,7 @@ void Bitmap::blur()
|
||||||
glState.blendMode.pushSet(BlendNone);
|
glState.blendMode.pushSet(BlendNone);
|
||||||
glState.viewport.pushSet(IntRect(0, 0, width(), height()));
|
glState.viewport.pushSet(IntRect(0, 0, width(), height()));
|
||||||
|
|
||||||
TEX::bind(p->tex.tex);
|
TEX::bind(p->gl.tex);
|
||||||
FBO::bind(auxTex.fbo, FBO::Draw);
|
FBO::bind(auxTex.fbo, FBO::Draw);
|
||||||
|
|
||||||
pass1.bind();
|
pass1.bind();
|
||||||
|
@ -547,7 +547,7 @@ void Bitmap::blur()
|
||||||
quad.draw();
|
quad.draw();
|
||||||
|
|
||||||
TEX::bind(auxTex.tex);
|
TEX::bind(auxTex.tex);
|
||||||
FBO::bind(p->tex.fbo, FBO::Draw);
|
FBO::bind(p->gl.fbo, FBO::Draw);
|
||||||
|
|
||||||
pass2.bind();
|
pass2.bind();
|
||||||
pass2.setTexSize(Vec2i(width(), height()));
|
pass2.setTexSize(Vec2i(width(), height()));
|
||||||
|
@ -654,8 +654,8 @@ void Bitmap::radialBlur(int angle, int divisions)
|
||||||
glState.blendMode.pop();
|
glState.blendMode.pop();
|
||||||
glState.clearColor.pop();
|
glState.clearColor.pop();
|
||||||
|
|
||||||
shState->texPool().release(p->tex);
|
shState->texPool().release(p->gl);
|
||||||
p->tex = newTex;
|
p->gl = newTex;
|
||||||
|
|
||||||
modified();
|
modified();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue