From bcdcd7b36dc7d637c06b3af79320fd44642bc11a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 30 Dec 2011 09:36:57 +0900 Subject: [PATCH] Implement sprint glsl loading. That was... easy. --- libs/models/sprite/glsl_model_sprite.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/models/sprite/glsl_model_sprite.c b/libs/models/sprite/glsl_model_sprite.c index 24aaf30a2..aaa7d8e1f 100644 --- a/libs/models/sprite/glsl_model_sprite.c +++ b/libs/models/sprite/glsl_model_sprite.c @@ -45,11 +45,17 @@ static __attribute__ ((used)) const char rcsid[] = #include "QF/model.h" #include "QF/quakefs.h" #include "QF/va.h" -#include "QF/GL/qf_textures.h" +#include "QF/GLSL/qf_textures.h" #include "compat.h" void Mod_SpriteLoadTexture (mspriteframe_t *pspriteframe, int framenum) { + const char *name; + + name = va ("%s_%i", loadmodel->name, framenum); + pspriteframe->gl_texturenum = + GL_LoadQuakeTexture (name, pspriteframe->width, pspriteframe->height, + pspriteframe->pixels); }