mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-18 13:21:16 +00:00
Adjust psp exceptions
This commit is contained in:
parent
c0bacb6bd9
commit
69bf01a7e2
@ -124,8 +124,9 @@ void GL11_BeginFrame(const Matrix4x4* projection)
|
|||||||
glEnable(GL_DEPTH_TEST);
|
glEnable(GL_DEPTH_TEST);
|
||||||
glDepthMask(GL_TRUE);
|
glDepthMask(GL_TRUE);
|
||||||
glEnable(GL_LIGHTING);
|
glEnable(GL_LIGHTING);
|
||||||
|
|
||||||
#ifndef __PSP__
|
#ifndef __PSP__
|
||||||
|
glEnable(GL_COLOR_MATERIAL);
|
||||||
|
|
||||||
// Disable all lights and reset global ambient
|
// Disable all lights and reset global ambient
|
||||||
for (int i = 0; i < 8; ++i) {
|
for (int i = 0; i < 8; ++i) {
|
||||||
glDisable(GL_LIGHT0 + i);
|
glDisable(GL_LIGHT0 + i);
|
||||||
@ -209,7 +210,6 @@ void GL11_SubmitDraw(
|
|||||||
glEnable(GL_NORMALIZE);
|
glEnable(GL_NORMALIZE);
|
||||||
|
|
||||||
#ifndef __PSP__
|
#ifndef __PSP__
|
||||||
glEnable(GL_COLOR_MATERIAL);
|
|
||||||
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
|
glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);
|
||||||
glColor4ub(appearance.color.r, appearance.color.g, appearance.color.b, appearance.color.a);
|
glColor4ub(appearance.color.r, appearance.color.g, appearance.color.b, appearance.color.a);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user