summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-09-21 12:54:22 -0400
committerLioncash <mathew1800@gmail.com>2016-09-21 12:54:22 -0400
commit99baa3268f36007c0e7b287c4cc1842448801ea3 (patch)
treeaa8fc53c3a4fba3efef949ea32a6bdcb53fb5cad /Source
parent023eb34247f4e3db924113dd524615d3d05d8992 (diff)
SWOGLWindow: const correctness for ShowImage
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/VideoBackends/Software/SWOGLWindow.cpp2
-rw-r--r--Source/Core/VideoBackends/Software/SWOGLWindow.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp
index f64b9656db..d5b6bf42c5 100644
--- a/Source/Core/VideoBackends/Software/SWOGLWindow.cpp
+++ b/Source/Core/VideoBackends/Software/SWOGLWindow.cpp
@@ -90,7 +90,7 @@ void SWOGLWindow::PrintText(const std::string& text, int x, int y, u32 color)
m_text.emplace_back(data);
}
-void SWOGLWindow::ShowImage(u8* data, int stride, int width, int height, float aspect)
+void SWOGLWindow::ShowImage(const u8* data, int stride, int width, int height, float aspect)
{
GLInterface->MakeCurrent();
GLInterface->Update();
diff --git a/Source/Core/VideoBackends/Software/SWOGLWindow.h b/Source/Core/VideoBackends/Software/SWOGLWindow.h
index 3c85255cb2..110642b3f8 100644
--- a/Source/Core/VideoBackends/Software/SWOGLWindow.h
+++ b/Source/Core/VideoBackends/Software/SWOGLWindow.h
@@ -20,7 +20,7 @@ public:
void PrintText(const std::string& text, int x, int y, u32 color);
// Image to show, will be swapped immediately
- void ShowImage(u8* data, int stride, int width, int height, float aspect);
+ void ShowImage(const u8* data, int stride, int width, int height, float aspect);
int PeekMessages();