summaryrefslogtreecommitdiffstats
path: root/src/VBox/HostServices/SharedOpenGL/crserverlib/server_occlude.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/HostServices/SharedOpenGL/crserverlib/server_occlude.c')
-rw-r--r--src/VBox/HostServices/SharedOpenGL/crserverlib/server_occlude.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/VBox/HostServices/SharedOpenGL/crserverlib/server_occlude.c b/src/VBox/HostServices/SharedOpenGL/crserverlib/server_occlude.c
new file mode 100644
index 00000000..6d479369
--- /dev/null
+++ b/src/VBox/HostServices/SharedOpenGL/crserverlib/server_occlude.c
@@ -0,0 +1,37 @@
+/* Copyright (c) 2001, Stanford University
+ * All rights reserved
+ *
+ * See the file LICENSE.txt for information on redistributing this software.
+ */
+
+#include "chromium.h"
+#include "cr_error.h"
+#include "cr_mem.h"
+#include "server_dispatch.h"
+#include "server.h"
+
+void SERVER_DISPATCH_APIENTRY
+crServerDispatchGenQueriesARB(GLsizei n, GLuint *queries)
+{
+ GLuint *local_queries;
+ (void) queries;
+
+ if (n <= 0 || n >= INT32_MAX / sizeof(GLuint))
+ {
+ crError("crServerDispatchGenQueriesARB: parameter 'n' is out of range");
+ return;
+ }
+
+ local_queries = (GLuint *)crCalloc(n * sizeof(*local_queries));
+
+ if (!local_queries)
+ {
+ crError("crServerDispatchGenQueriesARB: out of memory");
+ return;
+ }
+
+ cr_server.head_spu->dispatch_table.GenQueriesARB( n, local_queries );
+
+ crServerReturnValue( local_queries, n * sizeof(*local_queries) );
+ crFree( local_queries );
+}