Opened 14 years ago
Closed 13 years ago
#8925 closed defect (fixed)
glGetShaderSource doesn't zero-terminate source string
Reported by: | kuroneko | Owned by: | |
---|---|---|---|
Component: | 3D support | Version: | VirtualBox 4.0.8 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | other |
Description (last modified by )
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.
Attachments (1)
Change History (4)
comment:1 by , 14 years ago
by , 14 years ago
Attachment: | Validation-2011-05-18-17-31-54.log added |
---|
comment:3 by , 13 years ago
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Running the same application directly on the host GL library doesn't show the issue (i.e. the shader source is correctly terminated).