fix usage of i8vec4 instead of u8vec4, fix grid commit bounds
This commit is contained in:
@@ -197,7 +197,7 @@ void RTT::clear(glm::vec4 color)
|
||||
|
||||
glm::ivec4 RTT::calc_bounds()
|
||||
{
|
||||
auto data = std::unique_ptr<glm::i8vec4[]>(reinterpret_cast<glm::i8vec4*>(readTextureData()));
|
||||
auto data = std::unique_ptr<glm::u8vec4[]>(reinterpret_cast<glm::u8vec4*>(readTextureData()));
|
||||
glm::ivec2 bbmin(w, h);
|
||||
glm::ivec2 bbmax(0);
|
||||
for (int y = 0; y < h; y++)
|
||||
|
||||
Reference in New Issue
Block a user