fix shaders for ios, add separator for combobox
This commit is contained in:
@@ -719,8 +719,13 @@ void ui::Canvas::resize(int width, int height)
|
||||
m_height = height;
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
#if __IOS__
|
||||
m_tmp[i].create(width, height, -1, GL_RGBA8);
|
||||
m_tex[i].create(width, height, GL_RGBA8);
|
||||
#else
|
||||
m_tmp[i].create(width, height, -1, GL_RGBA32F);
|
||||
m_tex[i].create(width, height, GL_RGBA32F);
|
||||
#endif
|
||||
m_tex2[i].create(width, height, GL_RGBA8);
|
||||
}
|
||||
for (auto& l : m_layers)
|
||||
@@ -734,8 +739,13 @@ bool ui::Canvas::create(int width, int height)
|
||||
m_height = height;
|
||||
for (int i = 0; i < 6; i++)
|
||||
{
|
||||
#if __IOS__
|
||||
m_tmp[i].create(width, height, -1, GL_RGBA8);
|
||||
m_tex[i].create(width, height, GL_RGBA8);
|
||||
#else
|
||||
m_tmp[i].create(width, height, -1, GL_RGBA32F);
|
||||
m_tex[i].create(width, height, GL_RGBA32F);
|
||||
#endif
|
||||
m_tex2[i].create(width, height, GL_RGBA8); // TODO: destroy before recreating
|
||||
}
|
||||
m_sampler.create(GL_NEAREST);
|
||||
|
||||
Reference in New Issue
Block a user