[DEV] disable force of pow 2 image in Graphic card
This commit is contained in:
parent
c6c92f86f6
commit
ec312fbe09
@ -181,11 +181,12 @@ public class ResourceTexture2 extends Resource {
|
|||||||
Log.debug(" size=" + image.getSize());
|
Log.debug(" size=" + image.getSize());
|
||||||
this.data = image;
|
this.data = image;
|
||||||
this.realImageSize = this.data.getSize();
|
this.realImageSize = this.data.getSize();
|
||||||
final Vector2i compatibilityHWSize = new Vector2i(Tools.nextP2(this.realImageSize.x()), Tools.nextP2(this.realImageSize.y()));
|
// Disable compatibility size for embended ...
|
||||||
if (!this.realImageSize.equals(compatibilityHWSize)) {
|
// final Vector2i compatibilityHWSize = new Vector2i(Tools.nextP2(this.realImageSize.x()), Tools.nextP2(this.realImageSize.y()));
|
||||||
Log.warning("RESIZE Image for HArwareCompatibility:" + this.realImageSize + " => " + compatibilityHWSize);
|
// if (!this.realImageSize.equals(compatibilityHWSize)) {
|
||||||
this.data.resize(compatibilityHWSize.x(), compatibilityHWSize.y());
|
// Log.warning("RESIZE Image for HArwareCompatibility:" + this.realImageSize + " => " + compatibilityHWSize);
|
||||||
}
|
// this.data.resize(compatibilityHWSize.x(), compatibilityHWSize.y());
|
||||||
|
// }
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user