aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash <mathew1800@gmail.com>2015-05-23 17:28:39 -0400
committerGravatar Lioncash <mathew1800@gmail.com>2015-05-23 17:28:39 -0400
commit513f6a277e0261b1a4d336daeac1133db46213ab (patch)
treed6f268517918f33c2cb1fa503a46a74e04313dca /src
parent5f193bbf068c8b4bf2a9200b696a574c5e1e5784 (diff)
parent951353558ef7e812d5f48f60e5ff5f9cbbfdf0fe (diff)
Merge pull request #805 from lioncash/warn
video_core/core: Get rid of more warnings.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/y2r_u.cpp1
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp2
-rw-r--r--src/video_core/renderer_opengl/gl_state.h2
-rw-r--r--src/video_core/utils.h3
4 files changed, 2 insertions, 6 deletions
diff --git a/src/core/hle/service/y2r_u.cpp b/src/core/hle/service/y2r_u.cpp
index 15987e02..19bfde75 100644
--- a/src/core/hle/service/y2r_u.cpp
+++ b/src/core/hle/service/y2r_u.cpp
@@ -236,7 +236,6 @@ static void StartConversion(Service::Interface* self) {
const size_t tile_size = 8 * 8 * bpp;
for (size_t line = 0; line < input_lines;) {
- size_t tile_y = line / 8;
size_t max_line = line + 8;
for (; line < max_line; ++line) {
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index 938edf1c..1afa58c9 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -43,7 +43,7 @@ OpenGLState::OpenGLState() {
draw.shader_program = 0;
}
-const void OpenGLState::Apply() {
+void OpenGLState::Apply() {
// Culling
if (cull.enabled != cur_state.cull.enabled) {
if (cull.enabled) {
diff --git a/src/video_core/renderer_opengl/gl_state.h b/src/video_core/renderer_opengl/gl_state.h
index a56d3137..281b7cad 100644
--- a/src/video_core/renderer_opengl/gl_state.h
+++ b/src/video_core/renderer_opengl/gl_state.h
@@ -63,7 +63,7 @@ public:
}
/// Apply this state as the current OpenGL state
- const void Apply();
+ void Apply();
private:
static OpenGLState cur_state;
diff --git a/src/video_core/utils.h b/src/video_core/utils.h
index ffb3e73a..4fa60a10 100644
--- a/src/video_core/utils.h
+++ b/src/video_core/utils.h
@@ -72,11 +72,8 @@ static inline u32 GetMortonOffset(u32 x, u32 y, u32 bytes_per_pixel) {
//
// This pattern is what's called Z-order curve, or Morton order.
- const unsigned int block_width = 8;
const unsigned int block_height = 8;
-
const unsigned int coarse_x = x & ~7;
- const unsigned int coarse_y = y & ~7;
u32 i = VideoCore::MortonInterleave(x, y);