summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-10-27 01:29:50 -0700
committerMike Pavone <pavone@retrodev.com>2013-10-27 01:29:50 -0700
commit7b604db493ad6663b864a5d1b9f509118f9860b2 (patch)
treeb85570436a940e5dd8ef68e19381b0156bdd3ceb /vdp.c
parent7e61eaa7225bf025af42f88d0598aff8412f4144 (diff)
Basic OpenGL rendering is working
--HG-- branch : opengl
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index c1e04f0..e962a67 100644
--- a/vdp.c
+++ b/vdp.c
@@ -50,10 +50,13 @@ void init_vdp_context(vdp_context * context)
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;