mirror of https://github.com/xemu-project/xemu.git
More formatting...
This commit is contained in:
parent
b7a51d7d2d
commit
320cbc8b56
15
hw/nv2a.c
15
hw/nv2a.c
|
@ -1501,19 +1501,24 @@ static void pgraph_context_init(GraphicsContext *context)
|
|||
const GLubyte *extensions;
|
||||
extensions = glGetString (GL_EXTENSIONS);
|
||||
|
||||
assert(glo_check_extension(const GLubyte *)"GL_EXT_texture_compression_s3tc",
|
||||
assert(glo_check_extension((const GLubyte *)
|
||||
"GL_EXT_texture_compression_s3tc",
|
||||
extensions));
|
||||
|
||||
assert(glo_check_extension(const GLubyte *)"GL_EXT_framebuffer_object",
|
||||
assert(glo_check_extension((const GLubyte *)
|
||||
"GL_EXT_framebuffer_object",
|
||||
extensions));
|
||||
|
||||
assert(glo_check_extension(const GLubyte *)"GL_ARB_vertex_program",
|
||||
assert(glo_check_extension((const GLubyte *)
|
||||
"GL_ARB_vertex_program",
|
||||
extensions));
|
||||
|
||||
assert(glo_check_extension(const GLubyte *)"GL_ARB_fragment_program",
|
||||
assert(glo_check_extension((const GLubyte *)
|
||||
"GL_ARB_fragment_program",
|
||||
extensions));
|
||||
|
||||
assert(glo_check_extension(const GLubyte *)"GL_ARB_texture_rectangle",
|
||||
assert(glo_check_extension((const GLubyte *)
|
||||
"GL_ARB_texture_rectangle",
|
||||
extensions));
|
||||
|
||||
GLint max_vertex_attributes;
|
||||
|
|
|
@ -82,10 +82,10 @@ GloContext *glo_context_create(int formatFlags)
|
|||
{
|
||||
GloContext *context;
|
||||
|
||||
context = (GloContext*)malloc(sizeof(GloContext));
|
||||
context = (GloContext *)malloc(sizeof(GloContext));
|
||||
memset(context, 0, sizeof(GloContext));
|
||||
|
||||
// pixel format attributes
|
||||
/* pixel format attributes */
|
||||
CGLPixelFormatAttribute attributes[] = {
|
||||
kCGLPFAAccelerated,
|
||||
(CGLPixelFormatAttribute)0
|
||||
|
@ -115,7 +115,7 @@ GLboolean glo_check_extension(const GLubyte *extName,
|
|||
/* Set current context */
|
||||
void glo_set_current(GloContext *context)
|
||||
{
|
||||
if(context == NULL)
|
||||
if (context == NULL)
|
||||
CGLSetCurrentContext(NULL);
|
||||
else
|
||||
CGLSetCurrentContext(context->cglContext);
|
||||
|
|
Loading…
Reference in New Issue