WineD3D: compile against standard GL headers

H. Verbeet hverbeet at gmail.com
Tue Jul 31 05:20:12 CDT 2007


On 31/07/07, Roderick Colenbrander <thunderbird2k at gmx.net> wrote:
> Hi,
>
> This patch allows WineD3D to build against a standard GL.h and removes the
> dependency on glext.h. This is useful for building WineD3D against
> opengl32.dll.
>
> Regards,
> Roderick Colenbrander
>
- You should #define the extensions to 1, like it's done for the other
extensions.
eg.

#ifndef GL_NV_texture_env_combine4
#define GL_NV_texture_env_combine4 1
...
#endif

- GL_ARB_multisample & GL_EXT_vertex_weighting also define new
functions, you should add those as well.

- If you're going to remove the glext.h include, you should also
#define GL_GLEXT_LEGACY, or gl.h will potentially pull it in by
itself.

- You should also remove the GL_GLEXT_PROTOTYPES define, it should
only be used by glext.h



More information about the wine-devel mailing list