aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2005-02-08 17:39:08 +0000
committerMichel Dänzer <[email protected]>2005-02-08 17:39:08 +0000
commit3dec3c7a74035bc85eab31a3c442e362d41ffe6d (patch)
tree91c13599f728ef2f93d0cbf3441088c9648db837 /src/mesa/drivers
parent8e5f0e62dd7d6465dcd906d38dffd0b1b476e3b5 (diff)
Call _mesa_ResizeBuffersMESA() in r200Viewport(), fixes incorrect rendering
in bzflag 2.0. (Alexander E. Patrakov)
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/r200/r200_state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.c
index b83e71e0ec4..bc844fb9a65 100644
--- a/src/mesa/drivers/dri/r200/r200_state.c
+++ b/src/mesa/drivers/dri/r200/r200_state.c
@@ -40,6 +40,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "enums.h"
#include "colormac.h"
#include "light.h"
+#include "buffers.h"
#include "swrast/swrast.h"
#include "array_cache/acache.h"
@@ -1631,6 +1632,8 @@ void r200UpdateWindow( GLcontext *ctx )
static void r200Viewport( GLcontext *ctx, GLint x, GLint y,
GLsizei width, GLsizei height )
{
+ /* update size of Mesa/software ancillary buffers */
+ _mesa_ResizeBuffersMESA();
/* Don't pipeline viewport changes, conflict with window offset
* setting below. Could apply deltas to rescue pipelined viewport
* values, or keep the originals hanging around.