mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
[HW render] set known blending equation.
This commit is contained in:
parent
37c8ea816c
commit
f8d065eeb6
2
gfx/gl.c
2
gfx/gl.c
@ -1458,6 +1458,7 @@ static bool gl_frame(void *data, const void *frame, unsigned width, unsigned hei
|
|||||||
glDisable(GL_DITHER);
|
glDisable(GL_DITHER);
|
||||||
glDisable(GL_BLEND);
|
glDisable(GL_BLEND);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
glBlendEquation(GL_FUNC_ADD);
|
||||||
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -2070,6 +2071,7 @@ static void *gl_init(const video_info_t *video, const input_driver_t **input, vo
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
glBlendEquation(GL_FUNC_ADD);
|
||||||
|
|
||||||
if (!resolve_extensions(gl))
|
if (!resolve_extensions(gl))
|
||||||
{
|
{
|
||||||
|
@ -3096,6 +3096,15 @@ GLAPI void APIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor )
|
|||||||
LContext->needValidate |= RGL_VALIDATE_BLENDING;
|
LContext->needValidate |= RGL_VALIDATE_BLENDING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLAPI void APIENTRY glBlendEquation( GLenum func )
|
||||||
|
{
|
||||||
|
RGLcontext* LContext = (RGLcontext*)_CurrentContext;
|
||||||
|
|
||||||
|
LContext->BlendEquationRGB = func;
|
||||||
|
LContext->BlendEquationAlpha = func;
|
||||||
|
LContext->needValidate |= RGL_VALIDATE_BLENDING;
|
||||||
|
}
|
||||||
|
|
||||||
/*============================================================
|
/*============================================================
|
||||||
FRAMEBUFFER OBJECTS
|
FRAMEBUFFER OBJECTS
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user