Fix hw transform and audio on android, misc

This commit is contained in:
Henrik Rydgard committed 2012-12-21 12:57:43 +01:00
1 parent 9db065a979
commit 4efb66fdb6
5 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -1136,10 +1136,10 @@ void sceKernelExitDeleteThread()
Thread *t = kernelObjects.Get<Thread>(threadHandle, error);
if (t)
{
ERROR_LOG(HLE,"sceKernelExitDeleteThread()");
INFO_LOG(HLE,"sceKernelExitDeleteThread()");
currentThread->nt.status = THREADSTATUS_DORMANT;
currentThread->nt.exitStatus = PARAM(0);
__KernelFireThreadEnd(currentThread);
__KernelFireThreadEnd(currentThread);
//userMemory.Free(currentThread->stackBlock);
currentThread->stackBlock = 0;
+1 -1
View File
@@ -648,6 +648,7 @@ void VertexDecoder::SetVertexType(u32 fmt) {
void VertexDecoder::DecodeVerts(u8 *decodedptr, const void *verts, const void *inds, int prim, int count, int *indexLowerBound, int *indexUpperBound) const
{
// Find index bounds. Could cache this in display lists.
// Also, this could be greatly sped up with SSE2, although rarely a bottleneck.
int lowerBound = 0x7FFFFFFF;
int upperBound = 0;
if (idx == (GE_VTYPE_IDX_8BIT >> GE_VTYPE_IDX_SHIFT)) {
@@ -685,4 +686,3 @@ void VertexDecoder::DecodeVerts(u8 *decodedptr, const void *verts, const void *i
decoded_ += decFmt.stride;
}
}
+1 -1
View File
@@ -327,7 +327,7 @@ char *GenerateVertexShader(int prim)
if (doLight[i] == LIGHT_DOTONLY)
continue; // Actually, might want specular dot.... TODO
WRITE(p, " float lightScale%i = 1.0f;\n", i);
WRITE(p, " float lightScale%i = 1.0;\n", i);
if (type != GE_LIGHTTYPE_DIRECTIONAL) {
// Attenuation
WRITE(p, " float distance%i = length(toLight%i);\n", i, i);
+1 -1
View File
@@ -133,7 +133,7 @@ void NativeMix(short *audio, int num_samples)
{
if (g_mixer)
{
g_mixer->Mix(audio, num_samples/2);
g_mixer->Mix(audio, num_samples);
}
else
{
@@ -15,4 +15,4 @@ public class PpssppActivity extends NativeActivity {
{
return false;
}
}
}