the Fiddler's picture

[CL] ContextProperties should be mapped to IntPtr, not int

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

This affects the first parameter of CreateContext() and CreateContextFromType().

The fix is simple (change csharp.tm to map cl_context_properties to IntPtr), but we also need to add helper overloads that take ContextProperties instead of IntPtr for compatibility.


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

Status:in progress» fixed

Fixed in r2576 (trunk).

To avoid overload explosion, I have added only the more common overloads for the helper methods. A complete implementation would result in ~60 overloads.

the Fiddler's picture

#2

Version:1.1-dev» 1.0-2010-10-06
Status:fixed» closed

Closing issues fixed in opentk-1.0-2010-10-06 release.