the Fiddler's picture

New GetActiveUniformName overload returns garbage

Project:The Open Toolkit library
Version:1.0-beta-1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

(Originally reported by kvark, here)

GetActiveUniformName returns garbage: 'Vertex sha'
Looks like a shader info log trimmed by uniform name max length.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Version:0.9.9-3» 0.9.x-dev
Status:open» fixed

Fixed in rev. 2366.

The issue was that the new overloads used StringBuilder.Length (which is 0) instead of StringBuilder.Capacity for the buffer size.

kvark's picture

#2

Cool, thanks!

the Fiddler's picture

#3

Version:0.9.x-dev» 1.0-beta-1
Status:fixed» closed

Closing issues fixed in 1.0 beta-1.