Advertisement
robn

Untitled

Nov 24th, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.21 KB | None | 0 0
  1. diff --git a/src/LmrModel.cpp b/src/LmrModel.cpp
  2. index b498126..460caed 100644
  3. --- a/src/LmrModel.cpp
  4. +++ b/src/LmrModel.cpp
  5. @@ -366,6 +366,7 @@ public:
  6.                                         op.elems.texture->BindTexture();
  7.                                         if (op.elems.glowmap != 0) {
  8.                                                 glActiveTexture(GL_TEXTURE1);
  9. +                                               glEnable(GL_TEXTURE_2D);
  10.                                                 op.elems.glowmap->BindTexture();
  11.                                         }
  12.                                 } else {
  13. @@ -388,6 +389,10 @@ public:
  14.                                 if ( op.elems.texture != 0 ) {
  15.                                         glActiveTexture(GL_TEXTURE0);
  16.                                         glDisable(GL_TEXTURE_2D);
  17. +                                       if (op.elems.glowmap != 0) {
  18. +                                               glActiveTexture(GL_TEXTURE1);
  19. +                                               glDisable(GL_TEXTURE_2D);
  20. +                                       }
  21.                                 }
  22.                                 break;
  23.                         case OP_DRAW_BILLBOARDS:
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement