VirtualBox

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

最後變更 在這個檔案從43287是 15532,由 vboxsync 提交於 16 年 前

crOpenGL: export to OSE

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 1.1 KB
 
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}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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