Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. index c0a0680..b7d4dab 100644
  2. --- a/src/client/renderer/r_surface.c
  3. +++ b/src/client/renderer/r_surface.c
  4. @@ -39,15 +39,17 @@ void R_SetSurfaceBumpMappingParameters (const mBspSurface_t *surf, const image_t
  5.  
  6. assert(surf);
  7.  
  8. - if (normalMap && (surf->flags & MSURF_LIGHTMAP)) {
  9. + if (surf->flags & MSURF_LIGHTMAP) {
  10. const image_t *image = surf->texinfo->image;
  11. R_BindDeluxemapTexture(surf->deluxemap_texnum);
  12. + }
  13. +
  14. + if (normalMap)
  15. R_EnableBumpmap(normalMap, qtrue);
  16. - R_UseMaterial(&image->material);
  17. - } else {
  18. + else
  19. R_EnableBumpmap(NULL, qfalse);
  20. - R_UseMaterial(NULL);
  21. - }
  22. +
  23. + R_UseMaterial(&image->material);
  24. }
  25.  
  26. /**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement