Subversion Repositories gelsvn

Rev

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

Rev 628 Rev 629
Line 1517... Line 1517...
1517
	if( image_type == SOIL_SAVE_TYPE_DDS )
1517
	if( image_type == SOIL_SAVE_TYPE_DDS )
1518
	{
1518
	{
1519
		save_result = save_image_as_DDS( filename,
1519
		save_result = save_image_as_DDS( filename,
1520
				width, height, channels, (const unsigned char *const)data );
1520
				width, height, channels, (const unsigned char *const)data );
1521
	} else
1521
	} else
-
 
1522
    if( image_type == SOIL_SAVE_TYPE_PNG )
-
 
1523
    {
-
 
1524
        save_result = stbi_write_png( filename, width, height, channels, (void*)data ,0 );
-
 
1525
    }
-
 
1526
    else
1522
	{
1527
	{
1523
		save_result = 0;
1528
		save_result = 0;
1524
	}
1529
	}
1525
	if( save_result == 0 )
1530
	if( save_result == 0 )
1526
	{
1531
	{