aboutsummaryrefslogtreecommitdiffstats
path: root/make/gl-common.cfg
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-04-26 17:49:58 +0000
committerKenneth Russel <[email protected]>2007-04-26 17:49:58 +0000
commitb0561a27f58c25be1fc1edd18f2aba896020d01c (patch)
tree3e6514102276e7dfee45a21957fa6eff8be1d0be /make/gl-common.cfg
parent1a9854b5d2ee11d5109e1d56120abc93ec88827b (diff)
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
Diffstat (limited to 'make/gl-common.cfg')
-rw-r--r--make/gl-common.cfg6
1 files changed, 3 insertions, 3 deletions
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})