VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getstring.c@ 20175

Last change on this file since 20175 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
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 "server_dispatch.h"
10#include "server.h"
11#include "cr_string.h"
12
13const GLubyte * SERVER_DISPATCH_APIENTRY crServerDispatchGetString( GLenum name )
14{
15 const GLubyte *retval;
16 retval = cr_server.head_spu->dispatch_table.GetString( name );
17 if (retval)
18 crServerReturnValue( retval, crStrlen((char *)retval) + 1 );
19 else
20 crServerReturnValue( "", 1 ); /* empty string */
21 return retval; /* WILL PROBABLY BE IGNORED */
22}
23
24void SERVER_DISPATCH_APIENTRY crServerDispatchGetProgramStringNV( GLuint id, GLenum pname, GLubyte * program )
25{
26 crError( "glGetProgramStringNV isn't *ever* allowed to be on the wire!" );
27 (void) id;
28 (void) pname;
29 (void) program;
30}
31
32void SERVER_DISPATCH_APIENTRY crServerDispatchGetProgramStringARB( GLuint id, GLenum pname, void * program )
33{
34 crError( "glGetProgramStringARB isn't *ever* allowed to be on the wire!" );
35 (void) id;
36 (void) pname;
37 (void) program;
38}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette