From fa208e9128d2f3079d0533ffcaa4bc70dab88e2e Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Tue, 29 Oct 2013 23:13:15 -0700 Subject: Fix allocation and memset size for field buffers when using OpenGL --- render_sdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'render_sdl.c') diff --git a/render_sdl.c b/render_sdl.c index 70cb3e4..124ee07 100644 --- a/render_sdl.c +++ b/render_sdl.c @@ -159,9 +159,9 @@ void render_alloc_surfaces(vdp_context * context) { #ifndef DISABLE_OPENGL if (render_gl) { - context->oddbuf = context->framebuf = malloc(320 * 240 * 4 * 2); - memset(context->oddbuf, 0, 320 * 240 * 4 * 2); - context->evenbuf = ((char *)context->oddbuf) + 320 * 240 * 4; + context->oddbuf = context->framebuf = malloc(512 * 256 * 4 * 2); + memset(context->oddbuf, 0, 512 * 256 * 4 * 2); + context->evenbuf = ((char *)context->oddbuf) + 512 * 256 * 4; glGenTextures(3, textures); for (int i = 0; i < 3; i++) { -- cgit v1.2.3