Browse Source

ref_gl: fix alpha in menu (and anywhere else where triColor4ub is used)

pull/2/head
Alibek Omarov 6 years ago
parent
commit
8b5926f9b1
  1. 2
      ref_gl/gl_context.c
  2. 1
      ref_gl/gl_local.h
  3. 12
      ref_gl/gl_triapi.c

2
ref_gl/gl_context.c

@ -513,7 +513,7 @@ ref_interface_t gReffuncs = @@ -513,7 +513,7 @@ ref_interface_t gReffuncs =
TriBegin,
TriEnd,
_TriColor4f,
TriColor4ub,
_TriColor4ub,
TriTexCoord2f,
TriVertex3fv,
TriVertex3f,

1
ref_gl/gl_local.h

@ -577,6 +577,7 @@ void TriTexCoord2f( float u, float v ); @@ -577,6 +577,7 @@ void TriTexCoord2f( float u, float v );
void TriVertex3fv( const float *v );
void TriVertex3f( float x, float y, float z );
void _TriColor4f( float r, float g, float b, float a );
void _TriColor4ub( byte r, byte g, byte b, byte a );
void TriColor4f( float r, float g, float b, float a );
void TriColor4ub( byte r, byte g, byte b, byte a );
void TriBrightness( float brightness );

12
ref_gl/gl_triapi.c

@ -131,6 +131,18 @@ void _TriColor4f( float r, float g, float b, float a ) @@ -131,6 +131,18 @@ void _TriColor4f( float r, float g, float b, float a )
pglColor4f( r, g, b, a );
}
/*
=============
_TriColor4f
=============
*/
void _TriColor4ub( byte r, byte g, byte b, byte a )
{
pglColor4ub( r, g, b, a );
}
/*
=============
TriColor4ub

Loading…
Cancel
Save