mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
- fix dynlight color not being applied on sprites
This commit is contained in:
parent
9cd751ae7a
commit
51fd715404
1 changed files with 2 additions and 2 deletions
|
@ -919,7 +919,7 @@ void DrawSpan32(int y, int x0, int x1, const TriDrawTriangleArgs *args)
|
||||||
{
|
{
|
||||||
using namespace TriScreenDrawerModes;
|
using namespace TriScreenDrawerModes;
|
||||||
|
|
||||||
if (args->uniforms->NumLights() == 0)
|
if (args->uniforms->NumLights() == 0 && args->uniforms->DynLightColor() == 0)
|
||||||
{
|
{
|
||||||
if (!args->uniforms->FixedLight())
|
if (!args->uniforms->FixedLight())
|
||||||
{
|
{
|
||||||
|
@ -1447,7 +1447,7 @@ void DrawSpan8(int y, int x0, int x1, const TriDrawTriangleArgs *args)
|
||||||
{
|
{
|
||||||
using namespace TriScreenDrawerModes;
|
using namespace TriScreenDrawerModes;
|
||||||
|
|
||||||
if (args->uniforms->NumLights() == 0)
|
if (args->uniforms->NumLights() == 0 && args->uniforms->DynLightColor() == 0)
|
||||||
{
|
{
|
||||||
if (!args->uniforms->FixedLight())
|
if (!args->uniforms->FixedLight())
|
||||||
DrawSpanOpt8<ModeT, DrawerOptC>(y, x0, x1, args);
|
DrawSpanOpt8<ModeT, DrawerOptC>(y, x0, x1, args);
|
||||||
|
|
Loading…
Reference in a new issue