diff vdp.c @ 492:dffc07104b09

Merged OpenGL branch
author Mike Pavone <pavone@retrodev.com>
date Sun, 27 Oct 2013 22:08:02 -0700
parents 32f053ad9b02
children 27345a67225d
line wrap: on
line diff
--- a/vdp.c	Thu Oct 03 21:22:05 2013 -0700
+++ b/vdp.c	Sun Oct 27 22:08:02 2013 -0700
@@ -50,10 +50,13 @@
 	memset(context, 0, sizeof(*context));
 	context->vdpmem = malloc(VRAM_SIZE);
 	memset(context->vdpmem, 0, VRAM_SIZE);
-	context->oddbuf = context->framebuf = malloc(FRAMEBUF_ENTRIES * (render_depth() / 8));
+	/*context->oddbuf = context->framebuf = malloc(FRAMEBUF_ENTRIES * (render_depth() / 8));
 	memset(context->framebuf, 0, FRAMEBUF_ENTRIES * (render_depth() / 8));
 	context->evenbuf = malloc(FRAMEBUF_ENTRIES * (render_depth() / 8));
 	memset(context->evenbuf, 0, FRAMEBUF_ENTRIES * (render_depth() / 8));
+	*/
+	render_alloc_surfaces(context);
+	context->framebuf = context->oddbuf;
 	context->linebuf = malloc(LINEBUF_SIZE + SCROLL_BUFFER_SIZE*2);
 	memset(context->linebuf, 0, LINEBUF_SIZE + SCROLL_BUFFER_SIZE*2);
 	context->tmp_buf_a = context->linebuf + LINEBUF_SIZE;