VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu.h@ 37624

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

crOpenGL: fix multicontext crashes (public bug #3762)

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 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#ifndef FEEDBACK_SPU_H
8#define FEEDBACK_SPU_H
9
10#ifdef WINDOWS
11#define FEEDBACKSPU_APIENTRY __stdcall
12#else
13#define FEEDBACKSPU_APIENTRY
14#endif
15
16#include "cr_spu.h"
17#include "cr_timer.h"
18#include "cr_glstate.h"
19
20typedef struct context_info_t ContextInfo;
21
22struct context_info_t {
23 CRContext *clientState; /* used to store client-side GL state */
24 GLint clientCtx; /* client context ID */
25};
26
27typedef struct {
28 int id;
29 int has_child;
30 SPUDispatchTable self, child, super;
31
32 int render_mode;
33
34 int default_viewport;
35
36 CRCurrentStatePointers current;
37
38 CRContext *defaultctx;
39 int numContexts;
40 ContextInfo context[CR_MAX_CONTEXTS];
41
42#ifdef CHROMIUM_THREADSAFE
43 CRmutex mutex;
44#endif
45} feedbackSPU;
46
47extern feedbackSPU feedback_spu;
48
49extern SPUNamedFunctionTable _cr_feedback_table[];
50
51extern SPUOptions feedbackSPUOptions[];
52
53extern void feedbackspuGatherConfiguration( void );
54
55#endif /* FEEDBACK_SPU_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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