VirtualBox

14 年 前 建立

13 年 前 結束

#8925 closed defect (fixed)

glGetShaderSource doesn't zero-terminate source string

回報者: kuroneko 負責人:
元件: 3D support 版本: VirtualBox 4.0.8
關鍵字: 副本:
Guest type: Windows Host type: other

描述 (由 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.

附加檔案 (1)

Validation-2011-05-18-17-31-54.log (75.1 KB ) - 14 年 前, 由 kuroneko 新增

下載所有附檔: .zip

更動歷史 (4)

comment:1 14 年 前kuroneko 編輯

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

14 年 前kuroneko 編輯

comment:2 14 年 前Leonid Lobachev 編輯

Should be fixed in SVN.

comment:3 13 年 前Frank Mehnert 編輯

描述: 修改 (差異)
狀態: newclosed
處理結果: fixed
注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette