# HG changeset patch # User Emmanuel Gil Peyrot # Date 1399399928 -7200 # Node ID d6d9a711253dbc3c113616e67e7a9a034270f24b # Parent 1abb6f7db8cc560cd797c01c60cb040c1994fe54 Fix text sometimes being drawn with a wrong blend func. diff --git a/pytouhou/ui/opengl/renderer.pyx b/pytouhou/ui/opengl/renderer.pyx --- a/pytouhou/ui/opengl/renderer.pyx +++ b/pytouhou/ui/opengl/renderer.pyx @@ -237,6 +237,7 @@ cdef class Renderer: glVertexAttribPointer(2, 4, GL_UNSIGNED_BYTE, True, sizeof(Vertex), 16) glEnableVertexAttribArray(2) + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) glBindTexture(GL_TEXTURE_2D, texture) glDrawElements(GL_TRIANGLES, 6 * length, GL_UNSIGNED_SHORT, indices)