[Spice-devel] [PATCH 4/4] gl: use glCopyPixels()

Marc-André Lureau marcandre.lureau at gmail.com
Tue Sep 24 04:47:40 PDT 2013


I don't see why the fallback method should be the default.

glCopyTexImage2D and glCopyPixels are equally broken with current Intel
mesa/drivers (I'll be filing a bug). But sw rendering is correct.
---
 common/glc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/glc.c b/common/glc.c
index 91b295c..c1795de 100644
--- a/common/glc.c
+++ b/common/glc.c
@@ -1263,7 +1263,7 @@ void glc_copy_pixels(GLCCtx glc, int x_dest, int y_dest, int x_src, int y_src, i
     int recreate = 0;
 
     spice_assert(ctx);
-#ifdef USE_COPY_PIXELS
+#if 1 /* USE_COPY_PIXELS */
     start_draw(ctx);
     if (ctx->pat) {
         glDisable(GL_TEXTURE_2D);
-- 
1.8.3.1



More information about the Spice-devel mailing list