mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-20 07:59:18 +02:00
view range factor implementation
This commit is contained in:
@@ -275,6 +275,12 @@ opengl_texture::load_DDS() {
|
||||
--mapcount;
|
||||
}
|
||||
*/
|
||||
if( datasize == 0 ) {
|
||||
// catch malformed .dds files
|
||||
WriteLog( "File \"" + name + "\" is malformed and holds no texture data." );
|
||||
data_state = resource_state::failed;
|
||||
return;
|
||||
}
|
||||
// reserve space and load texture data
|
||||
data.resize( datasize );
|
||||
if( offset != 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user