X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=vid_shared.c;h=f5987e788025d613d93a5e314cccb7282400f887;hb=3121b90a7af367c4b0b2de89242963001e58ff0c;hp=0859617f5f906c45e51aa189785376f40785f298;hpb=cf7bae16a5968c174f1d4f55bc558eeb5876ca76;p=xonotic%2Fdarkplaces.git diff --git a/vid_shared.c b/vid_shared.c index 0859617f..f5987e78 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -1038,6 +1038,7 @@ void VID_CheckExtensions(void) vid.support.ext_framebuffer_object = true; else vid.support.ext_framebuffer_object = GL_CheckExtension("GL_EXT_framebuffer_object", extfbofuncs, "-nofbo", false); + vid.support.ext_packed_depth_stencil = GL_CheckExtension("GL_EXT_packed_depth_stencil", NULL, "-nopackeddepthstencil", false); vid.support.ext_stencil_two_side = GL_CheckExtension("GL_EXT_stencil_two_side", stenciltwosidefuncs, "-nostenciltwoside", false); vid.support.ext_texture_3d = GL_CheckExtension("GL_EXT_texture3D", texture3dextfuncs, "-notexture3d", false); @@ -1816,7 +1817,7 @@ static int VID_Mode(int fullscreen, int width, int height, int bpp, float refres (vid_sRGB_fallback.integer >= 3) // force fallback || (vid_sRGB_fallback.integer >= 2 && // fallback if framebuffer is 8bit - !(r_viewfbo.integer >= 2 && vid.support.ext_framebuffer_object && vid.samples < 2)) + !(r_viewfbo.integer >= 2 && vid.support.ext_framebuffer_object && vid.support.arb_texture_non_power_of_two && vid.samples < 2)) ) vid.sRGB2D = vid.sRGB3D = false; @@ -1865,7 +1866,7 @@ void VID_Restart_f(void) if (!vid_opened) { - SCR_BeginLoadingPlaque(); + SCR_BeginLoadingPlaque(false); return; } @@ -2042,6 +2043,7 @@ void VID_Soft_SharedSetup(void) vid.support.ext_blend_subtract = true; vid.support.ext_draw_range_elements = true; vid.support.ext_framebuffer_object = true; + vid.support.ext_texture_3d = true; //vid.support.ext_texture_compression_s3tc = true; vid.support.ext_texture_filter_anisotropic = true;