diff options
author | Carsten Weisse <[email protected]> | 2007-05-11 20:55:17 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2007-05-11 20:55:17 +0000 |
commit | 3f4d54eda0e42bfefbb2df4cf904d2bf30d681cf (patch) | |
tree | 25b46b73c49948d7c7fee4b653855f2e4b0cd6b8 /lib/lwjgl | |
parent | 59dd837defa2060ac02d5e213acc4f8be9af6a61 (diff) |
update to lwjgl 1.1
Diffstat (limited to 'lib/lwjgl')
-rw-r--r-- | lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java b/lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java index e6a394b..6a7d396 100644 --- a/lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java +++ b/lib/lwjgl/patch/org/lwjgl/opengl/GLChecks.java @@ -46,8 +46,8 @@ import org.lwjgl.BufferUtils; * Thrown by the debug build library of the LWJGL if any OpenGL operation causes an error. * * @author cix_foo <[email protected]> - * @version $Revision: 1.2 $ - * $Id: GLChecks.java,v 1.2 2007-03-17 16:02:53 cawe Exp $ + * @version $Revision: 1.3 $ + * $Id: GLChecks.java,v 1.3 2007-05-11 20:55:17 cawe Exp $ */ class GLChecks { @@ -125,16 +125,16 @@ class GLChecks { return calculateImageStorage(format, type, width, height, depth) >> BufferUtils.getElementSizeExponent(buffer); } - static int calculateTexImage1DStorage(Buffer buffer, int format, int type, int width, int border) { - return calculateTexImage1DStorage(format, type, width, border) >> BufferUtils.getElementSizeExponent(buffer); + static int calculateTexImage1DStorage(Buffer buffer, int format, int type, int width) { + return calculateTexImage1DStorage(format, type, width) >> BufferUtils.getElementSizeExponent(buffer); } - static int calculateTexImage2DStorage(Buffer buffer, int format, int type, int width, int height, int border) { - return calculateTexImage2DStorage(format, type, width, height, border) >> BufferUtils.getElementSizeExponent(buffer); + static int calculateTexImage2DStorage(Buffer buffer, int format, int type, int width, int height) { + return calculateTexImage2DStorage(format, type, width, height) >> BufferUtils.getElementSizeExponent(buffer); } - static int calculateTexImage3DStorage(Buffer buffer, int format, int type, int width, int height, int depth, int border) { - return calculateTexImage3DStorage(format, type, width, height, depth, border) >> BufferUtils.getElementSizeExponent(buffer); + static int calculateTexImage3DStorage(Buffer buffer, int format, int type, int width, int height, int depth) { + return calculateTexImage3DStorage(format, type, width, height, depth) >> BufferUtils.getElementSizeExponent(buffer); } /** @@ -152,16 +152,16 @@ class GLChecks { return calculateBytesPerPixel(format, type) * width * height * depth; } - private static int calculateTexImage1DStorage(int format, int type, int width, int border) { - return calculateBytesPerPixel(format, type) * (width + (border << 1)); + private static int calculateTexImage1DStorage(int format, int type, int width) { + return calculateBytesPerPixel(format, type) * width; } - private static int calculateTexImage2DStorage(int format, int type, int width, int height, int border) { - return calculateTexImage1DStorage(format, type, width, border) * (height + (border << 1)); + private static int calculateTexImage2DStorage(int format, int type, int width, int height) { + return calculateTexImage1DStorage(format, type, width) * height; } - private static int calculateTexImage3DStorage(int format, int type, int width, int height, int depth, int border) { - return calculateTexImage2DStorage(format, type, width, height, border) * (depth + (border << 1)); + private static int calculateTexImage3DStorage(int format, int type, int width, int height, int depth) { + return calculateTexImage2DStorage(format, type, width, height) * depth; } private static int calculateBytesPerPixel(int format, int type) { |