Skip to content

Commit 1bf6826

Browse files
committed
RENDERER: Support vid_framebuffer 2 with classic renderer.
1 parent 93e6660 commit 1bf6826

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/glc_framebuffer.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ qbool GLC_CompilePostProcessProgram(void)
6161
}
6262
if (post_process_flags & POST_PROCESS_3DONLY) {
6363
strlcat(included_definitions, "#define EZ_POSTPROCESS_OVERLAY\n", sizeof(included_definitions));
64+
if (SDL_GL_ExtensionSupported("GL_ARB_draw_buffers")) {
65+
strlcat(included_definitions, "#extension GL_ARB_draw_buffers : enable\n", sizeof(included_definitions));
66+
} else if (SDL_GL_ExtensionSupported("GL_EXT_draw_buffers")) {
67+
strlcat(included_definitions, "#extension GL_EXT_draw_buffers : enable\n", sizeof(included_definitions));
68+
}
6469
}
6570
if (post_process_flags & POST_PROCESS_FXAA) {
6671
qbool supported = true;

0 commit comments

Comments
 (0)