From 958886bdd56f074e6721ccd4e673b33682e3278c Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 20 Nov 2012 18:05:33 +0100 Subject: [PATCH] Performance log gl_read_viewport. --- gfx/gl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/gl.c b/gfx/gl.c index 012201cdbc..c088a520d2 100644 --- a/gfx/gl.c +++ b/gfx/gl.c @@ -1540,6 +1540,9 @@ static bool gl_read_viewport(void *data, uint8_t *buffer) { gl_t *gl = (gl_t*)data; + RARCH_PERFORMANCE_INIT(read_viewport); + RARCH_PERFORMANCE_START(read_viewport); + glPixelStorei(GL_PACK_ALIGNMENT, 1); #ifdef HAVE_OPENGLES @@ -1564,6 +1567,7 @@ static bool gl_read_viewport(void *data, uint8_t *buffer) GL_BGR, GL_UNSIGNED_BYTE, buffer); #endif + RARCH_PERFORMANCE_STOP(read_viewport); return true; } #endif