VirtualBox

Opened 13 years ago

Closed 12 years ago

#8925 closed defect (fixed)

glGetShaderSource doesn't zero-terminate source string — at Version 3

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 Frank Mehnert)

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.

Change History (4)

comment:1 by kuroneko, 13 years ago

Running the same application directly on the host GL library doesn't show the issue (i.e. the shader source is correctly terminated).

by kuroneko, 13 years ago

comment:2 by Leonid Lobachev, 13 years ago

Should be fixed in SVN.

comment:3 by Frank Mehnert, 12 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use