diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-06-17 19:01:01 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-06-17 19:01:01 -0700 |
commit | 6cd595a305c71f0540a3ecf4c4038891a7eba762 (patch) | |
tree | 6e55ba1c85305e68e67be08ec03745c700b1e68a /render_sdl.c | |
parent | 8668ed398f50601c805f7e9fb629dec93e5a45f4 (diff) |
Partially working switch to having a vcounter and hslot counter in the context rather than trying to derive them from the cycle count. This should allow for more accurate handling of mid screen mode switches. Interrupt timing is broken currently though
Diffstat (limited to 'render_sdl.c')
-rw-r--r-- | render_sdl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render_sdl.c b/render_sdl.c index e5f5c96..9f635a8 100644 --- a/render_sdl.c +++ b/render_sdl.c @@ -364,7 +364,7 @@ void render_context_gl(vdp_context * context) glBindTexture(GL_TEXTURE_2D, (context->regs[REG_MODE_4] & BIT_INTERLACE) ? textures[1] : textures[2]); glUniform1i(un_textures[1], 1); - glUniform1f(un_width, context->latched_mode & BIT_H40 ? 320.0f : 256.0f); + glUniform1f(un_width, context->regs[REG_MODE_4] & BIT_H40 ? 320.0f : 256.0f); glBindBuffer(GL_ARRAY_BUFFER, buffers[0]); glVertexAttribPointer(at_pos, 2, GL_FLOAT, GL_FALSE, sizeof(GLfloat[2]), (void *)0); |