diff options
author | Ian Romanick <idr@us.ibm.com> | 2005-10-01 22:25:13 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2005-10-01 22:25:13 +0000 |
commit | 2c82429f8957ed0268c0e4e4fe5aed9093f33960 (patch) | |
tree | 79c450c575ba3577f1e14042482d4e4371a1c95c /fb/fbfill.c | |
parent | e27b3e4ea1ddf9b2e9c2d63a0e60400b523a8a94 (diff) |
Refactors __glXImageSize and __glXImage3DSize into a single function. It
replaces all calls to the old functions with calls to __glXImageSize
with the new parameter list.
I have also added 'target' as a parameter. This is a stepping stone to the
code in patch #2410. Basically, if the texture target is one of
GL_PROXY_*, the image size is always zero. This gathers all the checks
for that into a single place. I have *not* modified the existing
callers to take this into account. They still do their own checks for
GL_PROXY_*. However, when the generated versions of those functions are
added to the tree, they *will* rely on that.
The code growth is mainly due to the new 40 line comment before
__glXImageSize.
I have tested this with a few of the texture using demos and tests from
Mesa, including tunnel, texdown, and drawpix.
Reviewed by: Adam Jackson, Eric Anholt, and Brian Paul.
Diffstat (limited to 'fb/fbfill.c')
0 files changed, 0 insertions, 0 deletions