소스 검색

gpu: disable alpha test on GL ES platforms.

legacy
Sam Hocevar sam 11 년 전
부모
커밋
024ea25e27
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      src/gpu/renderer.cpp

+ 3
- 1
src/gpu/renderer.cpp 파일 보기

@@ -218,7 +218,7 @@ void Renderer::SetAlphaFunc(AlphaFunc func, float alpha)
m_data->m_d3d_dev->SetRenderState(D3DRS_ALPHAREF,
(DWORD)(alpha * 255.999f));
}
#else
#elif defined HAVE_GL_2X
switch (func)
{
case AlphaFunc::Disabled:
@@ -245,6 +245,8 @@ void Renderer::SetAlphaFunc(AlphaFunc func, float alpha)
glDisable(GL_ALPHA_TEST);
else
glEnable(GL_ALPHA_TEST);
#else
/* XXX: alpha test not available in GL ES */
#endif

m_data->m_alpha_func = func;


불러오는 중...
취소
저장