diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-10-27 22:08:02 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-10-27 22:08:02 -0700 |
commit | 070b44e5440b966f911ee974490c7c99c91ec3d1 (patch) | |
tree | e5de1208715933f65d6990d231b92a851ad9fbcd /vdp.c | |
parent | b8dc9d69563379341f127af571b4bec1312f4ca0 (diff) | |
parent | 8adf113effdafac7fe80375e2bb51871f9ddd276 (diff) |
Merged OpenGL branch
Diffstat (limited to 'vdp.c')
-rw-r--r-- | vdp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |