[Glamor] [PATCH 02/34] glamor: Drop fixed function transformation matrix setup.

Alex Deucher alexdeucher at gmail.com
Fri Feb 28 10:01:57 PST 2014


From: Eric Anholt <eric at anholt.net>

gl_ModelViewProjection and friends aren't used in our shaders, so this
setup didn't do anything.

Pulled from Eric's xserver glamor port.

Signed-off-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 src/glamor_pixmap.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/glamor_pixmap.c b/src/glamor_pixmap.c
index 368812a..4e0f876 100644
--- a/src/glamor_pixmap.c
+++ b/src/glamor_pixmap.c
@@ -68,12 +68,6 @@ glamor_set_destination_pixmap_fbo(glamor_pixmap_fbo * fbo, int x0, int y0, int w
 {
 	glamor_gl_dispatch *dispatch = glamor_get_dispatch(fbo->glamor_priv);
 	dispatch->glBindFramebuffer(GL_FRAMEBUFFER, fbo->fb);
-#ifndef GLAMOR_GLES2
-	dispatch->glMatrixMode(GL_PROJECTION);
-	dispatch->glLoadIdentity();
-	dispatch->glMatrixMode(GL_MODELVIEW);
-	dispatch->glLoadIdentity();
-#endif
 	dispatch->glViewport(x0, y0,
 			     width, height);
 
-- 
1.8.3.1



More information about the Glamor mailing list