bandaid fix on snapshots. i'm gonna have to rewrite this whole system lol
This commit is contained in:
@@ -49,7 +49,6 @@ namespace anm2ed::resource
|
|||||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter);
|
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter);
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, size.x, size.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels.data());
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, size.x, size.y, 0, GL_RGBA, GL_UNSIGNED_BYTE, pixels.data());
|
||||||
glGenerateMipmap(GL_TEXTURE_2D);
|
|
||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
namespace anm2ed::snapshots
|
namespace anm2ed::snapshots
|
||||||
{
|
{
|
||||||
constexpr auto ACTION = "Action";
|
constexpr auto ACTION = "Action";
|
||||||
constexpr auto MAX = 100;
|
constexpr auto MAX = 20;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace anm2ed
|
namespace anm2ed
|
||||||
|
|||||||
Reference in New Issue
Block a user