VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_error.c@ 60947

最後變更 在這個檔案從60947是 54905,由 vboxsync 提交於 10 年 前

Host 3D: Chromium server: add Expando SPU and DLM module in order to record and save OpenGL Display Lists (currently disabled).

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 1.1 KB
 
1/* $Id: dlm_error.c 54905 2015-03-23 11:20:58Z vboxsync $ */
2#include <stdio.h>
3#include <stdarg.h>
4#include "chromium.h"
5#include "cr_mem.h"
6#include "dlm.h"
7#include "cr_environment.h"
8#include "cr_error.h"
9
10#define GLCLIENT_LIST_ALLOC 1024
11
12void crdlmWarning( int line, char *file, GLenum error, char *format, ... )
13{
14 char errstr[8096];
15 va_list args;
16
17 if (crGetenv("CR_DEBUG")) {
18 char *glerr;
19 va_start( args, format );
20 vsprintf( errstr, format, args );
21 va_end( args );
22
23 switch (error) {
24 case GL_NO_ERROR:
25 glerr = "GL_NO_ERROR";
26 break;
27 case GL_INVALID_VALUE:
28 glerr = "GL_INVALID_VALUE";
29 break;
30 case GL_INVALID_ENUM:
31 glerr = "GL_INVALID_ENUM";
32 break;
33 case GL_INVALID_OPERATION:
34 glerr = "GL_INVALID_OPERATION";
35 break;
36 case GL_STACK_OVERFLOW:
37 glerr = "GL_STACK_OVERFLOW";
38 break;
39 case GL_STACK_UNDERFLOW:
40 glerr = "GL_STACK_UNDERFLOW";
41 break;
42 case GL_OUT_OF_MEMORY:
43 glerr = "GL_OUT_OF_MEMORY";
44 break;
45 case GL_TABLE_TOO_LARGE:
46 glerr = "GL_TABLE_TOO_LARGE";
47 break;
48 default:
49 glerr = "unknown";
50 break;
51 }
52
53 crWarning( "DLM error in %s, line %d: %s: %s\n",
54 file, line, glerr, errstr );
55 }
56}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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