blob: 6d47936983ac98bddac46a31dd72de1a718efb0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 );
}
|