mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Fixed 2d shaders and moved some debugging prints so they're not used when not running q3.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1304 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
c316584de4
commit
dc904881cd
1 changed files with 7 additions and 9 deletions
|
@ -761,14 +761,10 @@ static long CG_SystemCallsEx(void *offset, unsigned int mask, int fn, const long
|
|||
break;
|
||||
|
||||
case CG_R_REGISTERSHADER:
|
||||
VM_LONG(ret) = VM_TOHANDLE(R_RegisterPic(VM_POINTER(arg[0])));
|
||||
break;
|
||||
case CG_R_REGISTERSHADERNOMIP:
|
||||
VM_LONG(ret) = VM_TOHANDLE(R_RegisterShader(VM_POINTER(arg[0])));
|
||||
/*
|
||||
if (!Draw_SafeCachePic)
|
||||
VM_LONG(ret) = 0;
|
||||
else
|
||||
VM_LONG(ret) = (long)Draw_SafeCachePic(VM_POINTER(arg[0]));
|
||||
*/
|
||||
VM_LONG(ret) = VM_TOHANDLE(R_RegisterPic(VM_POINTER(arg[0])));
|
||||
break;
|
||||
|
||||
case CG_R_CLEARSCENE: //clear scene
|
||||
|
@ -1120,10 +1116,10 @@ void CG_Start (void)
|
|||
|
||||
qboolean CG_Command(void)
|
||||
{
|
||||
Con_DPrintf("CG_Command: %s %s\n", Cmd_Argv(0), Cmd_Args());
|
||||
#ifdef RGLQUAKE
|
||||
if (!cgvm)
|
||||
return false;
|
||||
Con_DPrintf("CG_Command: %s %s\n", Cmd_Argv(0), Cmd_Args());
|
||||
return VM_Call(cgvm, CG_CONSOLE_COMMAND);
|
||||
#else
|
||||
return false;
|
||||
|
@ -1132,13 +1128,15 @@ qboolean CG_Command(void)
|
|||
|
||||
void CG_Command_f(void)
|
||||
{
|
||||
Con_DPrintf("CG_Command_f: %s %s\n", Cmd_Argv(0), Cmd_Args());
|
||||
if (cgvm)
|
||||
{
|
||||
Con_DPrintf("CG_Command_f: %s %s\n", Cmd_Argv(0), Cmd_Args());
|
||||
if (!VM_Call(cgvm, CG_CONSOLE_COMMAND))
|
||||
{
|
||||
Cmd_ForwardToServer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
qboolean CG_KeyPress(int key, int down)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue