refactor textures access
This commit is contained in:
@@ -75,7 +75,7 @@ void Batch2D::vertex(
|
||||
buffer[index++] = a;
|
||||
}
|
||||
|
||||
void Batch2D::texture(Texture* new_texture){
|
||||
void Batch2D::texture(const Texture* new_texture){
|
||||
if (currentTexture == new_texture) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user