Khronos Public Bugzilla
Bug 457 - error in gl.spec , Uniform4fvARB...
error in gl.spec , Uniform4fvARB...
Status: RESOLVED WONTFIX
Product: OpenGL
Classification: Unclassified
Component: API Specification
unspecified
All All
: P3 normal
: ---
Assigned To: Jon Leech
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-30 13:38 PDT by aeforeve
Modified: 2013-06-15 13:13 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aeforeve 2011-03-30 13:38:39 PDT
The question is an error or I that that недопонял

http:// www.opengl.org/registry/api/gl.spec
We read the description of function Uniform4fvARB

Uniform4fvARB(location, count, value)
        return          void
        param          location        Int32 in value
        param          count          SizeI in value
        param          value          Float32 in array [count]
        category        ARB_shader_objects
        version        1.2
        extension
        glxropcode      ?
        glxflags        ignore
        alias          Uniform4fv

One of its parameters - the pointer on an array
        param value Float32 in array [count]

But a number of elements in an array it is specified as equal count - it depends actually it should be count*4
(In the code checked)

It really error or I that that in an emphasis don't see?


Uniform2fvARB
Uniform3fvARB
Uniform4fvARB
+ ...
Comment 1 Jon Leech 2013-06-15 13:13:07 PDT
It is probably an error. The array sizes in .spec files are basically
just my best guess. However, we've retired the .spec files in favor
of the new XML Registry, which is structured differently and, at least
at present, does not include array length information in descriptions
of parameters (in part because it's quite difficult to get right,
as you demonstrate here). It's possible we'll enhance the XML with
array length attributes in the future, depending on demand/interest,
but we'd need some more comprehensive approach to validating the
attributes for them to really be useful.