TINYGL: Fixed misspelt function name.

This commit is contained in:
Stefano Musumeci 2014-08-10 19:05:32 +02:00
parent a42d9e2b2d
commit a59c1de0ff
4 changed files with 5 additions and 5 deletions

View file

@ -1255,7 +1255,7 @@ void GfxTinyGL::drawEmergString(int x, int y, const char *text, const Color &fgC
int length = strlen(text);
bool blendingEnabled = _zb->isBlendingEnabled();
bool alphaTestEnabled = _zb->isAplhaTestEnabled();
bool alphaTestEnabled = _zb->isAlphaTestEnabled();
_zb->enableBlending(false);
_zb->enableAlphaTest(false);

View file

@ -32,7 +32,7 @@ void tglGetIntegerv(int pname, int *params) {
*params = c->fb->isBlendingEnabled();
break;
case TGL_ALPHA_TEST:
*params = c->fb->isAplhaTestEnabled();
*params = c->fb->isAlphaTestEnabled();
break;
default:
error("tglGet: option not implemented");

View file

@ -397,7 +397,7 @@ struct FrameBuffer {
FORCEINLINE bool isBlendingEnabled() const { return _blendingEnabled; }
FORCEINLINE void getBlendingFactors(int &sourceFactor, int &destinationFactor) const { sourceFactor = _sourceBlendingFactor; destinationFactor = _destinationBlendingFactor; }
FORCEINLINE bool isAplhaTestEnabled() const { return _alphaTestEnabled; }
FORCEINLINE bool isAlphaTestEnabled() const { return _alphaTestEnabled; }
FORCEINLINE bool isDepthWriteEnabled() const { return _depthWrite; }
FORCEINLINE int getDepthFunc() const { return _depthFunc; }
FORCEINLINE int getDepthWrite() const { return _depthWrite; }

View file

@ -404,7 +404,7 @@ void RasterizationDrawCall::execute(bool restoreState) const {
RasterizationDrawCall::RasterizationState RasterizationDrawCall::loadState() const {
RasterizationState state;
TinyGL::GLContext *c = TinyGL::gl_get_context();
state.alphaTest = c->fb->isAplhaTestEnabled();
state.alphaTest = c->fb->isAlphaTestEnabled();
c->fb->getBlendingFactors(state.sfactor, state.dfactor);
state.enableBlending = c->fb->isBlendingEnabled();
state.alphaFunc = c->fb->getAlphaTestFunc();
@ -534,7 +534,7 @@ void BlittingDrawCall::execute(const Common::Rect &clippingRectangle, bool resto
BlittingDrawCall::BlittingState BlittingDrawCall::loadState() const {
BlittingState state;
TinyGL::GLContext *c = TinyGL::gl_get_context();
state.alphaTest = c->fb->isAplhaTestEnabled();
state.alphaTest = c->fb->isAlphaTestEnabled();
c->fb->getBlendingFactors(state.sfactor, state.dfactor);
state.enableBlending = c->fb->isBlendingEnabled();
state.alphaFunc = c->fb->getAlphaTestFunc();