]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_rsurf.c
corrected a misspelling in a comment
[xonotic/darkplaces.git] / gl_rsurf.c
index 0a083abc684beca3411a62cf8a12a6920a2cecc9..987e9cbb8cebb86a0a8def4afabdbdd3fbc7b8ad 100644 (file)
@@ -770,7 +770,7 @@ static void R_Q1BSP_DrawLight_TransparentCallback(const entity_render_t *ent, co
        int surfacelistindex, batchcount;
        texture_t *t;
        msurface_t *batchsurfaces[BATCHSIZE];
-       // note: in practice this never actualy batches, oh well
+       // note: in practice this never actually batches, oh well
        R_Shadow_RenderMode_Begin();
        R_Shadow_RenderMode_ActiveLight((rtlight_t *)rtlight);
        R_Shadow_RenderMode_Lighting(false, true);
@@ -903,7 +903,7 @@ void R_ReplaceWorldTexture (void)
        {
                if(t->width && !strcasecmp(t->name, r))
                {
-                       if(Mod_LoadSkinFrame(&t->skin, (char*)newt, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | TEXF_PICMIP, false, r_fullbrights.integer))
+                       if(Mod_LoadSkinFrame(&t->skinframes[0], (char*)newt, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | TEXF_PICMIP, false, r_fullbrights.integer))
                        {
                                Con_Printf("%s replaced with %s\n", r, newt);
                                return;
@@ -911,7 +911,7 @@ void R_ReplaceWorldTexture (void)
                        else
                        {
                                Con_Printf("%s was not found\n", newt);
-                               Mod_LoadSkinFrame(&t->skin, (char*)r, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | TEXF_PICMIP, false, r_fullbrights.integer);//back to default
+                               Mod_LoadSkinFrame(&t->skinframes[0], (char*)r, TEXF_MIPMAP | TEXF_ALPHA | TEXF_PRECACHE | TEXF_PICMIP, false, r_fullbrights.integer);//back to default
                                return;
                        }
                }
@@ -928,7 +928,7 @@ void R_ListWorldTextures (void)
 
        Con_Print("Worldmodel textures :\n");
        for(i=0,t=m->data_textures;i<m->num_textures;i++,t++)
-               if(t->skin.base != r_texture_notexture)
+               if (t->numskinframes)
                        Con_Printf("%s\n", t->name);
 }