mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(zr_common) Call menu_display_ctl for blend end
This commit is contained in:
parent
f27d2b70f6
commit
e83d460997
@ -266,8 +266,9 @@ void zr_common_device_draw(struct zr_device *dev,
|
|||||||
|
|
||||||
/* setup global state */
|
/* setup global state */
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glBlendEquation(GL_FUNC_ADD);
|
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
|
||||||
|
glBlendEquation(GL_FUNC_ADD);
|
||||||
glActiveTexture(GL_TEXTURE0);
|
glActiveTexture(GL_TEXTURE0);
|
||||||
|
|
||||||
/* setup program */
|
/* setup program */
|
||||||
@ -334,8 +335,9 @@ void zr_common_device_draw(struct zr_device *dev,
|
|||||||
glBindBuffer(GL_ARRAY_BUFFER, (GLuint)last_vbo);
|
glBindBuffer(GL_ARRAY_BUFFER, (GLuint)last_vbo);
|
||||||
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, (GLuint)last_ebo);
|
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, (GLuint)last_ebo);
|
||||||
glBindVertexArray((GLuint)last_vao);
|
glBindVertexArray((GLuint)last_vao);
|
||||||
glDisable(GL_BLEND);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
menu_display_ctl(MENU_DISPLAY_CTL_BLEND_END, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void* zr_common_mem_alloc(zr_handle unused, size_t size)
|
void* zr_common_mem_alloc(zr_handle unused, size_t size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user