]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't apply motionblur when rendering to an envmap
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 21:10:42 +0000 (21:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 27 Feb 2010 21:10:42 +0000 (21:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10030 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 1df0dff054b0eca2dc7e419dde6068d987333b67..8b75a1c73c31e7d70db4295d544a8bbc4432765c 100644 (file)
@@ -7897,7 +7897,7 @@ static void R_BlendView(void)
                                cl.motionbluralpha *= lhrandom(1 - r_motionblur_randomize.value, 1 + r_motionblur_randomize.value);
                                cl.motionbluralpha = bound(0, cl.motionbluralpha, r_motionblur_maxblur.value);
                                // apply the blur
-                               if (cl.motionbluralpha > 0)
+                               if (cl.motionbluralpha > 0 && !r_refdef.envmap)
                                {
                                        GL_BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
                                        GL_Color(1, 1, 1, cl.motionbluralpha);