Skip to content

Commit

Permalink
WINTERMUTE: Fixed CID: 1564848
Browse files Browse the repository at this point in the history
  • Loading branch information
aquadran committed Nov 18, 2024
1 parent 1bdbde0 commit 98f1a4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engines/wintermute/base/gfx/opengl/base_render_opengl3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ bool BaseRenderOpenGL3D::drawSpriteEx(BaseSurface *tex, const Wintermute::Rect32
bool mirrorX, bool mirrorY) {

BaseSurfaceOpenGL3D *texture = dynamic_cast<BaseSurfaceOpenGL3D *>(tex);
if (!texture)
return false;

if (_spriteBatchMode) {
_batchTexture = texture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ bool BaseRenderOpenGL3DShader::drawSpriteEx(BaseSurface *tex, const Wintermute::
bool alphaDisable, Graphics::TSpriteBlendMode blendMode,
bool mirrorX, bool mirrorY) {
BaseSurfaceOpenGL3D *texture = dynamic_cast<BaseSurfaceOpenGL3D *>(tex);
if (!texture)
return false;

if (_spriteBatchMode) {
_batchTexture = texture;
Expand Down

0 comments on commit 98f1a4b

Please sign in to comment.