]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
always force a flush on copy to texture
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 11 Feb 2011 22:23:27 +0000 (22:23 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 11 Feb 2011 22:23:27 +0000 (22:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10841 d7cf8633-e32d-0410-b094-e92efae38249

dpsoftrast.c

index c179417cce62c62ae1ce1a1905282aad930215de..7dd0655034970252f9ea29f404d75420b48b60dd 100644 (file)
@@ -1216,8 +1216,7 @@ void DPSOFTRAST_CopyRectangleToTexture(int index, int mip, int tx, int ty, int s
        DPSOFTRAST_Texture *texture;
        texture = DPSOFTRAST_Texture_GetByIndex(index);if (!texture) return;
        if (mip < 0 || mip >= texture->mipmaps) return;
-       if (texture->binds)
-               DPSOFTRAST_Flush();
+       DPSOFTRAST_Flush();
        spixels = dpsoftrast.fb_colorpixels[0];
        swidth = dpsoftrast.fb_width;
        sheight = dpsoftrast.fb_height;