2
0
Эх сурвалжийг харах

DDSLoader: rename "sourcebytesPP" local variable

Stephen Gold 3 жил өмнө
parent
commit
2d34c9bee5

+ 2 - 2
jme3-core/src/plugins/java/com/jme3/texture/plugins/DDSLoader.java

@@ -672,7 +672,7 @@ public class DDSLoader implements AssetLoader {
             }
         }
 
-        int sourcebytesPP = bpp / 8;
+        int sourceBytesPP = bpp / 8;
         int targetBytesPP = pixelFormat.getBitsPerPixel() / 8;
 
         ByteBuffer dataBuffer = BufferUtils.createByteBuffer(totalSize * depth);
@@ -682,7 +682,7 @@ public class DDSLoader implements AssetLoader {
             int mipWidth = width;
             int mipHeight = height;
             int offset = k * totalSize;
-            byte[] b = new byte[sourcebytesPP];
+            byte[] b = new byte[sourceBytesPP];
             for (int mip = 0; mip < mipMapCount; mip++) {
                 for (int y = 0; y < mipHeight; y++) {
                     for (int x = 0; x < mipWidth; x++) {