|
@@ -210,12 +210,9 @@ bool Texture2D::SetData(unsigned level, int x, int y, int width, int height, con
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- bool wholeLevel = x == 0 && y == 0 && width == levelWidth && height == levelHeight;
|
|
|
|
|
- // Use Direct3D convention with the vertical coordinates ie. 0 is top
|
|
|
|
|
- y = levelHeight - (y + height);
|
|
|
|
|
-
|
|
|
|
|
graphics_->SetTextureForUpdate(this);
|
|
graphics_->SetTextureForUpdate(this);
|
|
|
|
|
|
|
|
|
|
+ bool wholeLevel = x == 0 && y == 0 && width == levelWidth && height == levelHeight;
|
|
|
unsigned format = GetSRGB() ? GetSRGBFormat(format_) : format_;
|
|
unsigned format = GetSRGB() ? GetSRGBFormat(format_) : format_;
|
|
|
|
|
|
|
|
if (!IsCompressed())
|
|
if (!IsCompressed())
|