diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-10-29 23:13:15 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-10-29 23:13:15 -0700 |
commit | fa208e9128d2f3079d0533ffcaa4bc70dab88e2e (patch) | |
tree | edd594a1325cf7f9c433768e116c063559c7d8cd | |
parent | ab06019ae97fdd75bc83a4d3c6c6a4209ef1e1b9 (diff) |
Fix allocation and memset size for field buffers when using OpenGL
-rw-r--r-- | render_sdl.c | 6 |
1 files changed, 3 insertions, 3 deletions
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++) { |