Opened 13 years ago
Last modified 12 years ago
#8925 closed defect
glGetShaderSource doesn't zero-terminate source string — at Initial Version
Reported by: | kuroneko | Owned by: | |
---|---|---|---|
Component: | 3D support | Version: | VirtualBox 4.0.8 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | other |
Description
This has been observed for windows and Mac OS hosts.
Once the source length (including terminator) has been established through glGetShaderiv() a buffer is allocated. The call to glGetShaderSource() is now supposed to fill this buffer with the shader source which *is* zero-terminated. The fill length is reported without said terminator (i.e. strlen(src)).
What I observe is that the length is reported correctly, the shader source itself is correct but the zero-terminator is missing.
Note:
See TracTickets
for help on using tickets.