mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:30:05 +00:00
Default geo_texture2d displayed parameter to true when not used
This commit is contained in:
parent
f4bc2572d2
commit
15beb9436d
7 changed files with 42 additions and 7 deletions
|
|
@ -136,7 +136,8 @@ void GeoLines::set_thresholded(bool thresholded)
|
|||
|
||||
void GeoLines::Initialize()
|
||||
{
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
auto& gl30 = p->context_->gl30();
|
||||
|
||||
p->shaderProgram_ = p->context_->GetShaderProgram(
|
||||
{{GL_VERTEX_SHADER, ":/gl/geo_texture2d.vert"},
|
||||
|
|
@ -215,6 +216,9 @@ void GeoLines::Initialize()
|
|||
reinterpret_cast<void*>(1 * sizeof(GLint)));
|
||||
gl.glEnableVertexAttribArray(6);
|
||||
|
||||
// aDisplayed
|
||||
gl30.glVertexAttribI1i(7, 1);
|
||||
|
||||
p->dirty_ = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -161,7 +161,8 @@ void PlacefileIcons::set_thresholded(bool thresholded)
|
|||
|
||||
void PlacefileIcons::Initialize()
|
||||
{
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
auto& gl30 = p->context_->gl30();
|
||||
|
||||
p->shaderProgram_ = p->context_->GetShaderProgram(
|
||||
{{GL_VERTEX_SHADER, ":/gl/geo_texture2d.vert"},
|
||||
|
|
@ -251,6 +252,9 @@ void PlacefileIcons::Initialize()
|
|||
reinterpret_cast<void*>(1 * sizeof(GLint)));
|
||||
gl.glEnableVertexAttribArray(6);
|
||||
|
||||
// aDisplayed
|
||||
gl30.glVertexAttribI1i(7, 1);
|
||||
|
||||
p->dirty_ = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -139,7 +139,8 @@ void PlacefileImages::set_thresholded(bool thresholded)
|
|||
|
||||
void PlacefileImages::Initialize()
|
||||
{
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
auto& gl30 = p->context_->gl30();
|
||||
|
||||
p->shaderProgram_ = p->context_->GetShaderProgram(
|
||||
{{GL_VERTEX_SHADER, ":/gl/geo_texture2d.vert"},
|
||||
|
|
@ -220,6 +221,9 @@ void PlacefileImages::Initialize()
|
|||
reinterpret_cast<void*>(1 * sizeof(GLint)));
|
||||
gl.glEnableVertexAttribArray(6);
|
||||
|
||||
// aDisplayed
|
||||
gl30.glVertexAttribI1i(7, 1);
|
||||
|
||||
p->dirty_ = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -131,7 +131,8 @@ void PlacefileLines::set_thresholded(bool thresholded)
|
|||
|
||||
void PlacefileLines::Initialize()
|
||||
{
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
gl::OpenGLFunctions& gl = p->context_->gl();
|
||||
auto& gl30 = p->context_->gl30();
|
||||
|
||||
p->shaderProgram_ = p->context_->GetShaderProgram(
|
||||
{{GL_VERTEX_SHADER, ":/gl/geo_texture2d.vert"},
|
||||
|
|
@ -209,6 +210,9 @@ void PlacefileLines::Initialize()
|
|||
reinterpret_cast<void*>(1 * sizeof(GLint)));
|
||||
gl.glEnableVertexAttribArray(6);
|
||||
|
||||
// aDisplayed
|
||||
gl30.glVertexAttribI1i(7, 1);
|
||||
|
||||
p->dirty_ = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue