Commit 5f05906f authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Store the number of aux buffers in the gl limits structure.

parent ae57138e
......@@ -1730,10 +1730,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
case ORM_BACKBUFFER:
{
GLint auxBuffers;
glGetIntegerv(GL_AUX_BUFFERS, &auxBuffers);
TRACE("Got %d aux buffers\n", auxBuffers);
if(auxBuffers > 0) {
if(GL_LIMITS(aux_buffers) > 0) {
TRACE("Using auxilliary buffer for offscreen rendering\n");
This->offscreenBuffer = GL_AUX0;
} else {
......
......@@ -546,6 +546,10 @@ BOOL IWineD3DImpl_FillGLCaps(IWineD3D *iface, Display* display) {
gl_info->max_pointsize = gl_floatv[1];
TRACE_(d3d_caps)("Maximum point size support - max point size=%f\n", gl_floatv[1]);
glGetIntegerv(GL_AUX_BUFFERS, &gl_max);
gl_info->max_aux_buffers = gl_max;
TRACE_(d3d_caps)("Offscreen rendering support - number of aux buffers=%d\n", gl_max);
/* Parse the gl supported features, in theory enabling parts of our code appropriately */
GL_Extensions = (const char *) glGetString(GL_EXTENSIONS);
TRACE_(d3d_caps)("GL_Extensions reported:\n");
......
......@@ -1875,6 +1875,7 @@ typedef struct _WineD3D_GL_Info {
float max_pointsize;
UINT max_blends;
UINT max_anisotropy;
UINT max_aux_buffers;
unsigned max_vshader_constantsF;
unsigned max_pshader_constantsF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment