From b0561a27f58c25be1fc1edd18f2aba896020d01c Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 26 Apr 2007 17:49:58 +0000 Subject: Fixed Issue 297: buffer size calculation for glTexImage2D is wrong Removed border from required buffer size computation as per bug report and glTexImage1D, glTexImage2D, and glTexImage3D definitions. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1222 232f8b59-042b-4e1e-8c03-345bb8c30851 --- make/gl-common.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'make/gl-common.cfg') diff --git a/make/gl-common.cfg b/make/gl-common.cfg index 137d69a83..e33bba2e1 100644 --- a/make/gl-common.cfg +++ b/make/gl-common.cfg @@ -367,9 +367,9 @@ RangeCheckBytes glConvolutionFilter1D 5 imageSizeInBytes({3}, {4}, {2} RangeCheckBytes glConvolutionFilter2D 6 imageSizeInBytes({4}, {5}, {2} , {3} , 1) RangeCheckBytes glDrawPixels 4 imageSizeInBytes({2}, {3}, {0} , {1} , 1) RangeCheckBytes glReadPixels 6 imageSizeInBytes({4}, {5}, {2} , {3} , 1) -RangeCheckBytes glTexImage1D 7 imageSizeInBytes({5}, {6}, {3} + (2 * {4}), 1 , 1) -RangeCheckBytes glTexImage2D 8 imageSizeInBytes({6}, {7}, {3} + (2 * {5}), {4} + (2 * {5}), 1) -RangeCheckBytes glTexImage3D 9 imageSizeInBytes({7}, {8}, {3} + (2 * {6}), {4} + (2 * {6}), {5} + (2 * {6})) +RangeCheckBytes glTexImage1D 7 imageSizeInBytes({5}, {6}, {3} , 1 , 1) +RangeCheckBytes glTexImage2D 8 imageSizeInBytes({6}, {7}, {3} , {4} , 1) +RangeCheckBytes glTexImage3D 9 imageSizeInBytes({7}, {8}, {3} , {4} , {5}) RangeCheckBytes glTexSubImage1D 6 imageSizeInBytes({4}, {5}, {3} , 1 , 1) RangeCheckBytes glTexSubImage2D 8 imageSizeInBytes({6}, {7}, {4} , {5} , 1) RangeCheckBytes glTexSubImage3D 10 imageSizeInBytes({8}, {9}, {5} , {6} , {7}) -- cgit v1.2.3