diff --git a/gl-pvr.c b/gl-pvr.c index 106f531..5995989 100644 --- a/gl-pvr.c +++ b/gl-pvr.c @@ -2,6 +2,7 @@ libgl/gl-pvr.c Copyright (C) 2013-2014 Josh Pearson + Copyright (C) 2016 Lawrence Sebald Vertex Buffer Routines for interfacing the Dreamcast's SH4 CPU and PowerVR GPU. @@ -23,6 +24,8 @@ #include #include +#include + #include "gl.h" #include "gl-api.h" #include "gl-sh4.h" @@ -201,6 +204,11 @@ inline void _glKosVertexBufCopy(void *dst, void *src, GLuint count) { } static inline void glutSwapBuffer() { +#ifndef GL_KOS_USE_DMA + QACR0 = QACRTA; + QACR1 = QACRTA; +#endif + pvr_list_begin(PVR_LIST_OP_POLY); #ifdef GL_KOS_USE_DMA pvr_dma_transfer(_glKosVertexBufAddress(GL_KOS_LIST_OP), 0,