Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/Internals/ColorTextureOpenGLProgram.cpp @ 590:5430bcffba57
FloatTextureSceneLayer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Apr 2019 11:33:57 +0200 |
parents | 5b4890d289cf |
children |
comparison
equal
deleted
inserted
replaced
589:3080ec4ec6b9 | 590:5430bcffba57 |
---|---|
108 glVertexAttribPointer(textureLocation_, COMPONENTS, GL_FLOAT, GL_FALSE, 0, 0); | 108 glVertexAttribPointer(textureLocation_, COMPONENTS, GL_FLOAT, GL_FALSE, 0, 0); |
109 | 109 |
110 if (useAlpha) | 110 if (useAlpha) |
111 { | 111 { |
112 glEnable(GL_BLEND); | 112 glEnable(GL_BLEND); |
113 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); | 113 //glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); |
114 glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); | |
114 glDrawArrays(GL_TRIANGLES, 0, COUNT); | 115 glDrawArrays(GL_TRIANGLES, 0, COUNT); |
115 glDisable(GL_BLEND); | 116 glDisable(GL_BLEND); |
116 } | 117 } |
117 else | 118 else |
118 { | 119 { |