Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/gl_common Modified Files: evas_gl_texture.c Log Message: well THAT was just silly. fix yuv texture upload bug - row by row get it right. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/gl_common/evas_gl_texture.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- evas_gl_texture.c 29 Dec 2006 03:32:45 -0000 1.6 +++ evas_gl_texture.c 31 Dec 2006 07:00:13 -0000 1.7 @@ -491,7 +491,7 @@ texfmt, GL_UNSIGNED_BYTE, NULL); for (y = 0; y < tex->h; y++) glTexSubImage2D(GL_TEXTURE_2D, 0, - 0, y, tex->w, tex->h, + 0, y, tex->w, 1, texfmt, GL_UNSIGNED_BYTE, rows[y]); glGenTextures(1, &(tex->texture2)); @@ -514,7 +514,7 @@ texfmt, GL_UNSIGNED_BYTE, NULL); for (y = 0; y < (tex->h / 2); y++) glTexSubImage2D(GL_TEXTURE_2D, 0, - 0, y, tex->w / 2, tex->h / 2, + 0, y, tex->w / 2, 1, texfmt, GL_UNSIGNED_BYTE, rows[tex->h + y]); glGenTextures(1, &(tex->texture3)); @@ -537,7 +537,7 @@ texfmt, GL_UNSIGNED_BYTE, NULL); for (y = 0; y < (tex->h / 2); y++) glTexSubImage2D(GL_TEXTURE_2D, 0, - 0, y, tex->w / 2, tex->h / 2, + 0, y, tex->w / 2, 1, texfmt, GL_UNSIGNED_BYTE, rows[tex->h + (tex->h / 2) + y]); glUseProgramObjectARB(0); @@ -573,7 +573,7 @@ } for (y = 0; y < tex->h; y++) glTexSubImage2D(GL_TEXTURE_2D, 0, - 0, y, tex->w, tex->h, + 0, y, tex->w, 1, texfmt, GL_UNSIGNED_BYTE, rows[y]); glBindTexture(GL_TEXTURE_2D, tex->texture2); @@ -589,7 +589,7 @@ } for (y = 0; y < (tex->h / 2); y++) glTexSubImage2D(GL_TEXTURE_2D, 0, - 0, y, tex->w / 2, tex->h / 2, + 0, y, tex->w / 2, 1, texfmt, GL_UNSIGNED_BYTE, rows[tex->h + y]); glBindTexture(GL_TEXTURE_2D, tex->texture3); @@ -605,7 +605,7 @@ } for (y = 0; y < (tex->h / 2); y++) glTexSubImage2D(GL_TEXTURE_2D, 0, - 0, y, tex->w / 2, tex->h / 2, + 0, y, tex->w / 2, 1, texfmt, GL_UNSIGNED_BYTE, rows[tex->h + (tex->h / 2) + y]); if (tex->gc->texture) tex->gc->texture->references--; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs