Permalink
Browse files

[spline/bezier]Fix tex coords.

  • Loading branch information...
xebra committed Jun 25, 2018
1 parent f0923af commit 5536cdd82700fbc342120054e0df72d89ff0ff6a
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 5536cdd

Please sign in to comment.