Permalink
Browse files

Merge pull request #11218 from xebra/fix_hwtess_gl

[spline/bezier]Fix tex coords.
  • Loading branch information...
hrydgard committed Jun 25, 2018
2 parents f0923af + 5536cdd commit 28e3152fdc8e4e320bd5225d1d8b07dce0f7f44c
Showing with 1 addition and 1 deletion.
  1. +1 −1 GPU/GLES/DrawEngineGLES.cpp
@@ -673,7 +673,7 @@ void DrawEngineGLES::TessellationDataTransferGLES::SendDataToShader(const float
if (data_tex[1])
renderManager_->DeleteTexture(data_tex[1]);
uint8_t *tex_data = new uint8_t[size * sizeof(float) * 4];
memcpy(tex_data, pos, size * sizeof(float) * 4);
memcpy(tex_data, tex, size * sizeof(float) * 4);
data_tex[1] = renderManager_->CreateTexture(GL_TEXTURE_2D);
renderManager_->TextureImage(data_tex[1], 0, size, 1, GL_RGBA32F, GL_RGBA, GL_FLOAT, tex_data, GLRAllocType::NEW, false);
renderManager_->FinalizeTexture(data_tex[1], 0, false);

0 comments on commit 28e3152

Please sign in to comment.