Subversion Repositories gelsvn

Rev

Rev 603 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 603 Rev 628
Line 1392... Line 1392...
1392
	if( filename == NULL )
1392
	if( filename == NULL )
1393
	{
1393
	{
1394
		result_string_pointer = "Invalid screenshot filename";
1394
		result_string_pointer = "Invalid screenshot filename";
1395
		return 0;
1395
		return 0;
1396
	}
1396
	}
1397
 
-
 
-
 
1397
    glPixelStorei(GL_PACK_ALIGNMENT, 1); // allow images where width is multiple of 1 (default is 4)
1398
    /*  Get the data from OpenGL	*/
1398
    /*  Get the data from OpenGL	*/
1399
    pixel_data = (unsigned char*)malloc( 3*width*height );
1399
    pixel_data = (unsigned char*)malloc( 3*width*height );
1400
    glReadPixels (x, y, width, height, GL_RGB, GL_UNSIGNED_BYTE, pixel_data);
1400
    glReadPixels (x, y, width, height, GL_RGB, GL_UNSIGNED_BYTE, pixel_data);
1401
 
1401
 
1402
    /*	invert the image	*/
1402
    /*	invert the image	*/