Ollhax's picture

GLControl on Mac not rendered until resized

Project:The Open Toolkit library
Version:1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:open
Description

Small issue: If you create a GLControl on Mac OS X (Lion, running GL 2.1) the initial screen is blank. I haven't dug too deep into the cause, but it seems to be related to control not being positioned correctly initially. Anyway, a simple fix/workaround is to call context.Update(...) in OnLayout (just like OnParentChanged).