[Haiku-commits] r31260 - haiku/branches/components/gallium3d/src/add-ons/opengl/softpipe

aljen at mail.berlios.de aljen at mail.berlios.de
Fri Jun 26 20:51:08 CEST 2009


Author: aljen
Date: 2009-06-26 20:51:05 +0200 (Fri, 26 Jun 2009)
New Revision: 31260
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31260&view=rev

Modified:
   haiku/branches/components/gallium3d/src/add-ons/opengl/softpipe/hsp_context.c
Log:
Fixed resizing again, overlooked copy&paste



Modified: haiku/branches/components/gallium3d/src/add-ons/opengl/softpipe/hsp_context.c
===================================================================
--- haiku/branches/components/gallium3d/src/add-ons/opengl/softpipe/hsp_context.c	2009-06-26 17:56:03 UTC (rev 31259)
+++ haiku/branches/components/gallium3d/src/add-ons/opengl/softpipe/hsp_context.c	2009-06-26 18:51:05 UTC (rev 31260)
@@ -70,10 +70,10 @@
 	struct hsp_context *ctx = (struct hsp_context*)glctx->DriverCtx;
 	struct hsp_framebuffer *fb;
 
-	fb = ctx->draw;
-	
-	if (fb)
-		st_resize_framebuffer(fb->stfb, width, height);
+	if (ctx->draw)
+		st_resize_framebuffer(ctx->draw->stfb, width, height);
+	if (ctx->read)
+		st_resize_framebuffer(ctx->read->stfb, width, height);
 }
 
 
@@ -386,7 +386,7 @@
 			pipe_mutex_lock(ctx->read->mutex);
 			st_make_current(ctx->st, ctx->draw->stfb, ctx->read->stfb);
 			st_resize_framebuffer(ctx->draw->stfb, width, height);
-			st_resize_framebuffer(ctx->draw->stfb, width, height);
+			st_resize_framebuffer(ctx->read->stfb, width, height);
 			struct pipe_surface *surface;
 			st_get_framebuffer_surface(ctx->draw->stfb, ST_SURFACE_BACK_LEFT, &surface);
 			pipe_mutex_unlock(ctx->draw->mutex);




More information about the Haiku-commits mailing list