Temporary solution to get GTA: VC working.
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ void
|
|||||||
RawMatrix::mult(RawMatrix *dst, RawMatrix *src1, RawMatrix *src2)
|
RawMatrix::mult(RawMatrix *dst, RawMatrix *src1, RawMatrix *src2)
|
||||||
{
|
{
|
||||||
#ifdef PSP2
|
#ifdef PSP2
|
||||||
matmul4_neon((float*)&dst->right.x, (float*)&src1->right.x, (float*)&src2->right.x);
|
matmul4_neon((float*)&src1->right.x, (float*)&src2->right.x, (float*)&dst->right.x);
|
||||||
#else
|
#else
|
||||||
dst->right.x = src1->right.x*src2->right.x + src1->right.y*src2->up.x + src1->right.z*src2->at.x + src1->rightw*src2->pos.x;
|
dst->right.x = src1->right.x*src2->right.x + src1->right.y*src2->up.x + src1->right.z*src2->at.x + src1->rightw*src2->pos.x;
|
||||||
dst->right.y = src1->right.x*src2->right.y + src1->right.y*src2->up.y + src1->right.z*src2->at.y + src1->rightw*src2->pos.y;
|
dst->right.y = src1->right.x*src2->right.y + src1->right.y*src2->up.y + src1->right.z*src2->at.y + src1->rightw*src2->pos.y;
|
||||||
|
|||||||
+11
-2
@@ -1103,7 +1103,9 @@ beginUpdate(Camera *cam)
|
|||||||
}
|
}
|
||||||
|
|
||||||
setFrameBuffer(cam);
|
setFrameBuffer(cam);
|
||||||
|
#ifndef MIAMI_SUPPORT
|
||||||
vglStartRendering();
|
vglStartRendering();
|
||||||
|
#endif
|
||||||
ImIdx = (ImIdx + 1) % 2;
|
ImIdx = (ImIdx + 1) % 2;
|
||||||
gVertexBufferIm2D = gVertexBufferIm2DPtr[ImIdx];
|
gVertexBufferIm2D = gVertexBufferIm2DPtr[ImIdx];
|
||||||
gVertexBufferIm3D = gVertexBufferIm3DPtr[ImIdx];
|
gVertexBufferIm3D = gVertexBufferIm3DPtr[ImIdx];
|
||||||
@@ -1134,7 +1136,9 @@ static
|
|||||||
void
|
void
|
||||||
endUpdate(Camera *cam)
|
endUpdate(Camera *cam)
|
||||||
{
|
{
|
||||||
|
#ifndef MIAMI_SUPPORT
|
||||||
vglStopRendering();
|
vglStopRendering();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void log2file(const char *format, ...) {
|
void log2file(const char *format, ...) {
|
||||||
@@ -1184,7 +1188,10 @@ showRaster(Raster *raster, uint32 flags)
|
|||||||
vglWaitVblankStart(GL_FALSE);
|
vglWaitVblankStart(GL_FALSE);
|
||||||
#endif
|
#endif
|
||||||
//log2file("showRaster called");
|
//log2file("showRaster called");
|
||||||
|
#ifdef MIAMI_SUPPORT
|
||||||
|
vglStopRendering();
|
||||||
|
vglStartRendering();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool32
|
static bool32
|
||||||
@@ -1379,7 +1386,9 @@ openGLFW(EngineOpenParams *openparams)
|
|||||||
#endif
|
#endif
|
||||||
vglInitExtended(0x10000, 960, 544, 0x100000, SCE_GXM_MULTISAMPLE_4X);
|
vglInitExtended(0x10000, 960, 544, 0x100000, SCE_GXM_MULTISAMPLE_4X);
|
||||||
vglUseVram(GL_TRUE);
|
vglUseVram(GL_TRUE);
|
||||||
|
#ifdef MIAMI_SUPPORT
|
||||||
|
vglStartRendering();
|
||||||
|
#endif
|
||||||
makeVideoModeList();
|
makeVideoModeList();
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user