// int whose size is the same as a pointer (?)
typedef ptrdiff_t GLsizeiptrARB;
+#define GL_STEREO 0x0C33
+
#define GL_MODELVIEW 0x1700
#define GL_PROJECTION 0x1701
#define GL_TEXTURE 0x1702
vid.sRGB2D = vid_sRGB.integer >= 1 && vid.sRGBcapable2D;
vid.sRGB3D = vid_sRGB.integer >= 1 && vid.sRGBcapable3D;
+ switch(vid.renderpath)
+ {
+ case RENDERPATH_GL11:
+ case RENDERPATH_GL13:
+ case RENDERPATH_GL20:
+ {
+ GLboolean stereo;
+ qglGetBooleanv(GL_STEREO, &stereo);
+ vid.stereobuffer = stereo != 0;
+ }
+ break;
+ default:
+ vid.stereobuffer = false;
+ break;
+ }
+
if(
(vid_sRGB_fallback.integer >= 3) // force fallback
||
Cvar_SetValueQuick(&vid_samples, vid.mode.samples);
if(vid_userefreshrate.integer)
Cvar_SetValueQuick(&vid_refreshrate, vid.mode.refreshrate);
- Cvar_SetValueQuick(&vid_stereobuffer, vid.mode.stereobuffer);
+ Cvar_SetValueQuick(&vid_stereobuffer, vid.stereobuffer ? 1 : 0);
return true;
}