Commit 3e0ed066 authored by Rinnegatamante's avatar Rinnegatamante
Browse files

Revert "2D Rendering setup from vitaQuake."

This reverts commit af09c885.
parent e63e3539
......@@ -40,7 +40,7 @@ static float s_flipMatrix[16] = {
*/
void GL_Bind( image_t *image ) {
int texnum;
if ( !image ) {
ri.Printf( PRINT_WARNING, "GL_Bind: NULL image\n" );
texnum = tr.defaultImage->texnum;
......@@ -678,7 +678,7 @@ void RB_SetGL2D (void) {
qglScissor( 0, 0, glConfig.vidWidth, glConfig.vidHeight );
qglMatrixMode(GL_PROJECTION);
qglLoadIdentity ();
qglOrtho (0, glConfig.vidWidth, glConfig.vidHeight, 0, -99999, 99999);
qglOrtho (0, glConfig.vidWidth, glConfig.vidHeight, 0, 0, 1);
qglMatrixMode(GL_MODELVIEW);
qglLoadIdentity ();
......@@ -770,10 +770,10 @@ void RE_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte *
0.5f / cols, ( rows - 0.5f ) / rows
};
float vertices[] = {
x, y, 0.5f,
x+w, y, 0.5f,
x+w, y+h, 0.5f,
x, y+h, 0.5f
x, y, 0.0f,
x+w, y, 0.0f,
x+w, y+h, 0.0f,
x, y+h, 0.0f
};
qglColor3f( tr.identityLight, tr.identityLight, tr.identityLight );
......@@ -996,10 +996,10 @@ void RB_ShowImages( void ) {
0, 0, 1, 0, 1, 1, 0, 1
};
float vertex[] = {
x, y, 0.5f,
x+w, y, 0.5f,
x+w, y+h, 0.5f,
x, y+h, 0.5f
x, y, 0.0f,
x+w, y, 0.0f,
x+w, y+h, 0.0f,
x, y+h, 0.0f
};
vglVertexPointer(3, GL_FLOAT, 0, 4, vertex);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment