Changeset 76793 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Jan 13, 2019 8:53:58 PM (6 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_bufferobject.c
r76787 r76793 10 10 #include "server_dispatch.h" 11 11 #include "server.h" 12 #include "cr_unpack.h" 12 13 13 14 void * SERVER_DISPATCH_APIENTRY … … 51 52 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteBuffersARB( GLsizei n, const GLuint * buffer ) 52 53 { 54 if (n <= 0 || n >= INT32_MAX / sizeof(GLuint) || !DATA_POINTER_CHECK(n * sizeof(GLuint))) 55 { 56 crError("glDeleteBuffersARB: parameter 'n' is out of range"); 57 return; 58 } 59 53 60 crStateDeleteBuffersARB( n, buffer ); 54 61 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_framebuffer.c
r76787 r76793 22 22 #include "server_dispatch.h" 23 23 #include "server.h" 24 #include "cr_unpack.h" 24 25 25 26 void SERVER_DISPATCH_APIENTRY … … 181 182 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteFramebuffersEXT(GLsizei n, const GLuint * framebuffers) 182 183 { 183 crStateDeleteFramebuffersEXT(n, framebuffers); 184 if (n <= 0 || n >= INT32_MAX / sizeof(GLuint) || !DATA_POINTER_CHECK(n * sizeof(GLuint))) 185 { 186 crError("crStateDeleteFramebuffersEXT: parameter 'n' is out of range"); 187 return; 188 } 189 190 crStateDeleteFramebuffersEXT(n, framebuffers); 184 191 } 185 192 186 193 void SERVER_DISPATCH_APIENTRY crServerDispatchDeleteRenderbuffersEXT(GLsizei n, const GLuint * renderbuffers) 187 194 { 188 crStateDeleteRenderbuffersEXT(n, renderbuffers); 195 if (n <= 0 || n >= INT32_MAX / sizeof(GLuint) || !DATA_POINTER_CHECK(n * sizeof(GLuint))) 196 { 197 crError("glDeleteRenderbuffersEXT: parameter 'n' is out of range"); 198 return; 199 } 200 201 crStateDeleteRenderbuffersEXT(n, renderbuffers); 189 202 } 190 203
Note:
See TracChangeset
for help on using the changeset viewer.