#8925 closed defect (fixed)
glGetShaderSource doesn't zero-terminate source string
回報者: | kuroneko | 負責人: | |
---|---|---|---|
元件: | 3D support | 版本: | VirtualBox 4.0.8 |
關鍵字: | 副本: | ||
Guest type: | Windows | Host type: | other |
描述 (由 作最後更新)
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.
附加檔案 (1)
更動歷史 (4)
注意:
瀏覽 TracTickets
來幫助您使用待辦事項功能
Running the same application directly on the host GL library doesn't show the issue (i.e. the shader source is correctly terminated).