mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-12 00:56:40 -04:00
Try to fix Dreamcast/PS2 ports failing to compile
This commit is contained in:
parent
e91fff6f85
commit
f4865e4376
@ -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) {
|
||||
|
@ -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");
|
||||
|
2
third_party/gldc/gldc.h
vendored
2
third_party/gldc/gldc.h
vendored
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user