From 4ee4400801df2000c96263c3fdb22dc9245ccefd Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 16 Nov 2016 11:57:22 +0800 Subject: [PATCH] Removed dead code. --- Outputs/CRT/Internals/CRTOpenGL.cpp | 39 ----------------------------- 1 file changed, 39 deletions(-) diff --git a/Outputs/CRT/Internals/CRTOpenGL.cpp b/Outputs/CRT/Internals/CRTOpenGL.cpp index e9e801896..065f588f8 100644 --- a/Outputs/CRT/Internals/CRTOpenGL.cpp +++ b/Outputs/CRT/Internals/CRTOpenGL.cpp @@ -41,45 +41,6 @@ struct Range { GLsizei location, length; }; -static int getCircularRanges(GLsizei *start_pointer, GLsizei *end_pointer, GLsizei buffer_length, GLsizei granularity, GLsizei offset, Range *ranges) -{ - GLsizei start = *start_pointer; - GLsizei end = *end_pointer; - - *end_pointer %= buffer_length; - *start_pointer = *end_pointer; - - start += offset; - end += offset; - start -= start%granularity; - end -= end%granularity; - - GLsizei length = end - start; - if(!length) return 0; - if(length >= buffer_length) - { - ranges[0].location = 0; - ranges[0].length = buffer_length; - return 1; - } - else - { - ranges[0].location = start % buffer_length; - if(ranges[0].location + length <= buffer_length) - { - ranges[0].length = length; - return 1; - } - else - { - ranges[0].length = buffer_length - ranges[0].location; - ranges[1].location = 0; - ranges[1].length = length - ranges[0].length; - return 2; - } - } -} - static GLsizei submitArrayData(GLuint buffer, uint8_t *source, size_t *length_pointer) { GLsizei length = (GLsizei)*length_pointer;