From a59c1de0ffc67b4a202b73f94ebff9c11cdc3d6c Mon Sep 17 00:00:00 2001 From: Stefano Musumeci Date: Sun, 10 Aug 2014 19:05:32 +0200 Subject: [PATCH] TINYGL: Fixed misspelt function name. --- engines/grim/gfx_tinygl.cpp | 2 +- graphics/tinygl/get.cpp | 2 +- graphics/tinygl/zbuffer.h | 2 +- graphics/tinygl/zdirtyrect.cpp | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/grim/gfx_tinygl.cpp b/engines/grim/gfx_tinygl.cpp index 8abaeb58180..8d500cfea26 100644 --- a/engines/grim/gfx_tinygl.cpp +++ b/engines/grim/gfx_tinygl.cpp @@ -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); diff --git a/graphics/tinygl/get.cpp b/graphics/tinygl/get.cpp index e21270223e3..21b31899154 100644 --- a/graphics/tinygl/get.cpp +++ b/graphics/tinygl/get.cpp @@ -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"); diff --git a/graphics/tinygl/zbuffer.h b/graphics/tinygl/zbuffer.h index 2a5c2f30a9f..7b3a81d6aad 100644 --- a/graphics/tinygl/zbuffer.h +++ b/graphics/tinygl/zbuffer.h @@ -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; } diff --git a/graphics/tinygl/zdirtyrect.cpp b/graphics/tinygl/zdirtyrect.cpp index 19e38ce31f4..5fd7a869fbd 100644 --- a/graphics/tinygl/zdirtyrect.cpp +++ b/graphics/tinygl/zdirtyrect.cpp @@ -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();