summary refs log tree commit diff stats
path: root/src/renderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r--src/renderer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index cf6b2bd..f01d72a 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp
@@ -613,7 +613,7 @@ void Texture::fill(Rectangle dstrect, int r, int g, int b)
613 glDeleteBuffers(1, &vertexbuffer); 613 glDeleteBuffers(1, &vertexbuffer);
614} 614}
615 615
616void Texture::blit(Texture& srctex, Rectangle srcrect, Rectangle dstrect) 616void Texture::blit(const Texture& srctex, Rectangle srcrect, Rectangle dstrect)
617{ 617{
618 if (!rendererInitialized) 618 if (!rendererInitialized)
619 { 619 {
@@ -710,7 +710,7 @@ void bloomPass1(GLuint srcTex, GLuint dstTex, bool horizontal, glm::vec2 srcRes,
710 glDisableVertexAttribArray(0); 710 glDisableVertexAttribArray(0);
711} 711}
712 712
713void Texture::renderScreen() 713void Texture::renderScreen() const
714{ 714{
715 if (!rendererInitialized) 715 if (!rendererInitialized)
716 { 716 {
@@ -851,7 +851,7 @@ void Texture::renderScreen()
851 curBuf = (curBuf + 1) % 2; 851 curBuf = (curBuf + 1) % 2;
852} 852}
853 853
854Rectangle Texture::entirety() 854Rectangle Texture::entirety() const
855{ 855{
856 return {0, 0, width, height}; 856 return {0, 0, width, height};
857} 857}