tags:

views:

171

answers:

1

I'm using the SDL library to try to create a rendering context in a Delphi form. Everything works well until I try to create the renderer itself. It calls wglCreateContext, which fails. The error message says "Invalid pixel format."

The pixel format is based on the hdc for the form, which is all set up and managed internally by the VCL. Does anyone know how to figure out what's going wrong and correct it?

+2  A: 
Paul-Jan
Thanks! That worked. I sorta figured the VCL had already set this up, but apparently not.
Mason Wheeler