|
|
@ -838,8 +838,18 @@ void vrend_renderer_blit_gl(UNUSED struct vrend_context *ctx, |
|
|
|
glBufferData(GL_ARRAY_BUFFER, sizeof(blit_ctx->vertices), blit_ctx->vertices, GL_STATIC_DRAW); |
|
|
|
glBufferData(GL_ARRAY_BUFFER, sizeof(blit_ctx->vertices), blit_ctx->vertices, GL_STATIC_DRAW); |
|
|
|
glDrawArrays(GL_TRIANGLE_FAN, 0, 4); |
|
|
|
glDrawArrays(GL_TRIANGLE_FAN, 0, 4); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
glUseProgram(0); |
|
|
|
|
|
|
|
glDeleteProgram(prog_id); |
|
|
|
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_STENCIL_ATTACHMENT, |
|
|
|
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_STENCIL_ATTACHMENT, |
|
|
|
GL_TEXTURE_2D, 0, 0); |
|
|
|
GL_TEXTURE_2D, 0, 0); |
|
|
|
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0, |
|
|
|
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0, |
|
|
|
GL_TEXTURE_2D, 0, 0); |
|
|
|
GL_TEXTURE_2D, 0, 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void vrend_blitter_fini(void) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
vrend_blit_ctx.initialised = false; |
|
|
|
|
|
|
|
vrend_clicbs->destroy_gl_context(vrend_blit_ctx.gl_context); |
|
|
|
|
|
|
|
memset(&vrend_blit_ctx, 0, sizeof(vrend_blit_ctx)); |
|
|
|
|
|
|
|
} |
|
|
|