Last change
on this file since 74890 was 74890, checked in by vboxsync, 6 years ago |
3D: Memory allocations fixed, bugref:9251. Merged changes r125768, r125779, r125780, r125812.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
917 bytes
|
Line | |
---|
1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include "chromium.h"
|
---|
8 | #include "cr_error.h"
|
---|
9 | #include "cr_mem.h"
|
---|
10 | #include "server_dispatch.h"
|
---|
11 | #include "server.h"
|
---|
12 |
|
---|
13 | void SERVER_DISPATCH_APIENTRY
|
---|
14 | crServerDispatchGenQueriesARB(GLsizei n, GLuint *queries)
|
---|
15 | {
|
---|
16 | GLuint *local_queries;
|
---|
17 | (void) queries;
|
---|
18 |
|
---|
19 | if (n >= INT32_MAX / sizeof(GLuint))
|
---|
20 | {
|
---|
21 | crError("crServerDispatchGenQueriesARB: parameter 'n' is out of range");
|
---|
22 | return;
|
---|
23 | }
|
---|
24 |
|
---|
25 | local_queries = (GLuint *)crCalloc(n * sizeof(*local_queries));
|
---|
26 |
|
---|
27 | if (!local_queries)
|
---|
28 | {
|
---|
29 | crError("crServerDispatchGenQueriesARB: out of memory");
|
---|
30 | return;
|
---|
31 | }
|
---|
32 |
|
---|
33 | cr_server.head_spu->dispatch_table.GenQueriesARB( n, local_queries );
|
---|
34 |
|
---|
35 | crServerReturnValue( local_queries, n * sizeof(*local_queries) );
|
---|
36 | crFree( local_queries );
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.