diff --git a/source/duke3d/src/anim.cpp b/source/duke3d/src/anim.cpp index 2f8cb1ab8..9ae29f1b1 100644 --- a/source/duke3d/src/anim.cpp +++ b/source/duke3d/src/anim.cpp @@ -533,13 +533,11 @@ int32_t Anim_Play(const char *fn) } ++i; } while (i < numframes); - GLInterface.EnableNonTransparent255(false); end_anim_restore_gl: -#ifdef USE_OPENGL + GLInterface.EnableNonTransparent255(false); hw_texfilter = ogltexfiltermode; gltexapplyprops(); -#endif end_anim: inputState.ClearAllInput(); anim->animbuf = nullptr; diff --git a/source/rr/src/anim.cpp b/source/rr/src/anim.cpp index c77ede25f..1dd622a3b 100644 --- a/source/rr/src/anim.cpp +++ b/source/rr/src/anim.cpp @@ -567,13 +567,11 @@ int32_t Anim_Play(const char *fn) ++i; } while (i < numframes); - GLInterface.EnableNonTransparent255(false); end_anim_restore_gl: -#ifdef USE_OPENGL + GLInterface.EnableNonTransparent255(false); hw_texfilter = ogltexfiltermode; gltexapplyprops(); -#endif end_anim: inputState.ClearAllInput(); anim->animbuf = nullptr;