scope is supposed to be alpha blended
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3559 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -86,9 +86,6 @@ void drawscope()
|
||||
// this may need to change depending on the aspect ratio at which the scope image is drawn at
|
||||
const float scopeaspect = 4.0f/3.0f;
|
||||
|
||||
glEnable(GL_ALPHA_TEST);
|
||||
glAlphaFunc(GL_GREATER, 0.9f);
|
||||
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
static Texture *scopetex = NULL;
|
||||
if(!scopetex) scopetex = textureload("packages/misc/scope.png", 3);
|
||||
@@ -124,8 +121,6 @@ void drawscope()
|
||||
}
|
||||
|
||||
glEnd();
|
||||
|
||||
glDisable(GL_ALPHA_TEST);
|
||||
}
|
||||
|
||||
const char *crosshairnames[CROSSHAIR_NUM] = { "default", "teammate", "scope" };
|
||||
|
||||
Reference in New Issue
Block a user