http://bugs.freedesktop.org/show_bug.cgi?id=17005
Summary: inconsistent comment/error message and src code in
_mesa_BindTexture()
Product: Mesa
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Keywords: janitor
Severity: trivial
Priority: low
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
OpenGL spec, ver. 2.1 Section J.5 specifies/clarifies a requirement concerning
texture target type (and not the dimensionality) of the to-be-bound texture:
"the texture object passed to BindTexture must match the specified target, not
just the dimensionality of target".
The comment/error message in the Mesa code refers to the texture
dimensionality:
...
/* error checking */
if (newTexObj->Target != 0 && newTexObj->Target != target) {
/* the named texture object's dimensions don't match the target */
_mesa_error( ctx, GL_INVALID_OPERATION,
"glBindTexture(wrong dimensionality)" );
return;
...
while it should refer to the target type (as the src code does).
There is a problem in the FarCry, ver 1.4, which generates the following OpenGL
calls sequence:
glBindTexture(GL_TEXTURE_RECTANGLE_ARB,4326);
...
glBindTexture(GL_TEXTURE_2D,4326);
...
In this case, the texture dimensionality is the same.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev