mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-18 22:51:39 +00:00
- The GetBlend script call is needed in another place as well.
# Conflicts: # src/gl/scene/gl_scene.cpp
This commit is contained in:
parent
e969e8a86b
commit
ab5e5e0389
1 changed files with 9 additions and 1 deletions
|
@ -69,6 +69,7 @@
|
|||
#include "gl/textures/gl_material.h"
|
||||
#include "gl/utility/gl_clock.h"
|
||||
#include "gl/utility/gl_templates.h"
|
||||
#include "vm.h"
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
|
@ -776,7 +777,14 @@ void GLSceneDrawer::SetFixedColormap (player_t *player)
|
|||
auto litetype = PClass::FindActor(NAME_PowerLightAmp);
|
||||
for(AInventory * in = cplayer->mo->Inventory; in; in = in->Inventory)
|
||||
{
|
||||
PalEntry color = in->CallGetBlend ();
|
||||
PalEntry color = 0;
|
||||
|
||||
IFVIRTUALPTR(in, AInventory, GetBlend)
|
||||
{
|
||||
VMValue params[1] = { in };
|
||||
VMReturn ret((int*)&color.d);
|
||||
VMCall(func, params, 1, &ret, 1);
|
||||
}
|
||||
|
||||
// Need special handling for light amplifiers
|
||||
if (in->IsKindOf(torchtype))
|
||||
|
|
Loading…
Reference in a new issue