# HG changeset patch # User Mike Pavone # Date 1383113595 25200 # Node ID 7fdfcced65b67caee1069136aab2c733efaeac5f # Parent e1355aa80f4d5b3d319f0f2643db9baa70d15a25 Fix allocation and memset size for field buffers when using OpenGL diff -r e1355aa80f4d -r 7fdfcced65b6 render_sdl.c --- a/render_sdl.c Tue Oct 29 19:11:45 2013 -0700 +++ b/render_sdl.c Tue Oct 29 23:13:15 2013 -0700 @@ -159,9 +159,9 @@ { #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++) {