mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
texture compressing switch
This commit is contained in:
@@ -589,7 +589,10 @@ opengl_texture::create() {
|
||||
else {
|
||||
// uncompressed texture data. have the gfx card do the compression as it sees fit
|
||||
::glTexImage2D(
|
||||
GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA,
|
||||
GL_TEXTURE_2D, 0,
|
||||
( Global.compress_tex ?
|
||||
GL_COMPRESSED_RGBA :
|
||||
GL_RGBA ),
|
||||
data_width, data_height, 0,
|
||||
data_format, GL_UNSIGNED_BYTE, (GLubyte *)&data[ 0 ] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user