Browse Source

engine: no return type for RenderFrame

pull/2/head
Alibek Omarov 6 years ago
parent
commit
d14ce61520
  1. 4
      engine/client/ref_common.c
  2. 2
      engine/client/ref_common.h

4
engine/client/ref_common.c

@ -35,7 +35,7 @@ void GL_FreeImage( const char *name ) @@ -35,7 +35,7 @@ void GL_FreeImage( const char *name )
ref.dllFuncs.GL_FreeTexture( texnum );
}
int GL_RenderFrame( const ref_viewpass_t *rvp )
void GL_RenderFrame( const ref_viewpass_t *rvp )
{
refState.time = cl.time;
refState.oldtime = cl.oldtime;
@ -529,6 +529,8 @@ qboolean R_Init( void ) @@ -529,6 +529,8 @@ qboolean R_Init( void )
return false;
}
Con_Reportf( "Renderer %s initialized\n", refdll );
SCR_Init();
return true;

2
engine/client/ref_common.h

@ -38,7 +38,7 @@ void R_GetTextureParms( int *w, int *h, int texnum ); @@ -38,7 +38,7 @@ void R_GetTextureParms( int *w, int *h, int texnum );
#define GL_UpdateTextureInternal( name, pic, flags ) ref.dllFuncs.GL_LoadTextureFromBuffer( (name), (pic), (flags), true )
#define R_GetBuiltinTexture( name ) ref.dllFuncs.GL_LoadTexture( (name), 0, 0, 0 )
int GL_RenderFrame( const struct ref_viewpass_s *rvp );
void GL_RenderFrame( const struct ref_viewpass_s *rvp );
// common engine and renderer cvars
extern convar_t *r_decals;

Loading…
Cancel
Save