Try to fix Dreamcast/PS2 ports failing to compile

This commit is contained in:
UnknownShadow200 2024-05-20 07:25:57 +10:00
parent e91fff6f85
commit f4865e4376
3 changed files with 4 additions and 7 deletions

View File

@ -18,7 +18,7 @@ static cc_bool renderingDisabled;
*#########################################################################################################################*/
static void InitGLState(void) {
glClearDepth(1.0f);
glShadeModel(GL_SMOOTH);
GPUSetAlphaCutOff(127);
ALPHA_TEST_ENABLED = GL_FALSE;
CULLING_ENABLED = GL_FALSE;
@ -479,8 +479,6 @@ static void Gfx_FreeState(void) { FreeDefaultResources(); }
static void Gfx_RestoreState(void) {
InitDefaultResources();
gfx_format = -1;
glAlphaFunc(GL_GREATER, 0.5f);
}
cc_bool Gfx_WarnIfNecessary(void) {

View File

@ -15,13 +15,14 @@
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/time.h>
#include <kernel.h>
#include <timer_alarm.h>
#include <delaythread.h>
#include <debug.h>
#include <sifrpc.h>
#include <iopheap.h>
@ -251,7 +252,7 @@ void Thread_Run(void** handle, Thread_StartFunc func, int stackSize, const char*
int thdID = CreateThread(&thread);
if (thdID < 0) Logger_Abort2(thdID, "Creating thread");
*handle = thdID;
*handle = (void*)thdID;
int res = StartThread(thdID, (void*)func);
if (res < 0) Logger_Abort2(res, "Running thread");

View File

@ -122,8 +122,6 @@ GLAPI void glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
GLAPI void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
GLAPI void glAlphaFunc(GLenum func, GLclampf ref);
/*
* Dreamcast specific compressed + twiddled formats.