shithub: tinygl

Download patch

ref: 0c541240e5ab5f7fcba508fa20f540b0fa6a95a6
parent: 0f0109b4512032aa6576efb9771e60941904e357
author: David <gek@katherine>
date: Tue Mar 9 21:08:04 EST 2021

Automatic commit.

--- a/SDL_Examples/texture.c
+++ b/SDL_Examples/texture.c
@@ -261,6 +261,10 @@
 		{
 			GLint xsize, ysize;
 			void* data = glGetTexturePixmap(tex, 0, &xsize,  &ysize);
+			//for(int i = 0; i < winSizeX; i++)
+			//for(int j = 0; j < winSizeY; j++){
+				//glPlotPixel(i,j,rand() & 0xFFFFFF);
+			//}
 			if(data)
 				glDrawPixels(xsize,ysize, GL_RGB, 
 				(TGL_FEATURE_RENDER_BITS==32)?GL_UNSIGNED_INT:GL_UNSIGNED_SHORT, data