From 1908a43d189cc030753e0ec2e7654fb5c09e442b Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Mon, 23 Mar 2015 23:24:28 +0100 Subject: [PATCH] GRIM: Actors and billboards should not share the same shader uniforms Fixes Manny's smoke idle animation --- engines/grim/gfx_opengl_shaders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/grim/gfx_opengl_shaders.cpp b/engines/grim/gfx_opengl_shaders.cpp index 12635d5ad83..728c9e3a239 100644 --- a/engines/grim/gfx_opengl_shaders.cpp +++ b/engines/grim/gfx_opengl_shaders.cpp @@ -376,7 +376,7 @@ void GfxOpenGLS::setupShaders() { static const char* actorAttributes[] = {"position", "texcoord", "color", "normal", NULL}; _actorProgram = Graphics::Shader::fromFiles(isEMI ? "emi_actor" : "grim_actor", actorAttributes); - _spriteProgram = _actorProgram->clone(); + _spriteProgram = Graphics::Shader::fromFiles(isEMI ? "emi_actor" : "grim_actor", actorAttributes); static const char* primAttributes[] = { "position", NULL }; _shadowPlaneProgram = Graphics::Shader::fromFiles("shadowplane", primAttributes);