if (!GLContext.getCapabilities().GL_ARB_texture_non_power_of_two) {
if (img.getWidth() != 0 && img.getHeight() != 0) {
if (!FastMath.isPowerOfTwo(img.getWidth())
- || !FastMath.isPowerOfTwo(img.getHeight())
- || img.getWidth() != img.getHeight()) {
+ || !FastMath.isPowerOfTwo(img.getHeight())) {
// Resize texture to Power-of-2 size
MipMapGenerator.resizeToPowerOf2(img);
\r
if (img.getWidth() != 0 && img.getHeight() != 0) {\r
if (!FastMath.isPowerOfTwo(img.getWidth())\r
- || !FastMath.isPowerOfTwo(img.getHeight())\r
- || img.getWidth() != img.getHeight()) {\r
+ || !FastMath.isPowerOfTwo(img.getHeight())) {\r
// logger.log(Level.WARNING, "Encountered NPOT texture {0}, "\r
// + "it might not display correctly.", img);\r
\r