C.W. Betts 2009-10-20 09:58:56 PDT
The compiler complains that long is an incompatible pointer type for [gl_context setValues: forParameter:] and CGLSetParameter. This only shows up on x86_64, but it still might be an issue. --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404133
This commit is contained in:
parent
cf3e9b5159
commit
ceeb774a1c
1 changed files with 4 additions and 4 deletions
|
@ -153,7 +153,7 @@ int QZ_SetupOpenGL (_THIS, int bpp, Uint32 flags) {
|
||||||
* http://lists.apple.com/archives/mac-opengl/2006/Jan/msg00080.html )
|
* http://lists.apple.com/archives/mac-opengl/2006/Jan/msg00080.html )
|
||||||
*/
|
*/
|
||||||
if ( this->gl_config.swap_control >= 0 ) {
|
if ( this->gl_config.swap_control >= 0 ) {
|
||||||
long value;
|
GLint value;
|
||||||
value = this->gl_config.swap_control;
|
value = this->gl_config.swap_control;
|
||||||
[ gl_context setValues: &value forParameter: NSOpenGLCPSwapInterval ];
|
[ gl_context setValues: &value forParameter: NSOpenGLCPSwapInterval ];
|
||||||
}
|
}
|
||||||
|
@ -175,7 +175,7 @@ int QZ_SetupOpenGL (_THIS, int bpp, Uint32 flags) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
long cache_max = 64;
|
GLint cache_max = 64;
|
||||||
CGLContextObj ctx = QZ_GetCGLContextObj(gl_context);
|
CGLContextObj ctx = QZ_GetCGLContextObj(gl_context);
|
||||||
CGLSetParameter (ctx, GLI_SUBMIT_FUNC_CACHE_MAX, &cache_max);
|
CGLSetParameter (ctx, GLI_SUBMIT_FUNC_CACHE_MAX, &cache_max);
|
||||||
CGLSetParameter (ctx, GLI_ARRAY_FUNC_CACHE_MAX, &cache_max);
|
CGLSetParameter (ctx, GLI_ARRAY_FUNC_CACHE_MAX, &cache_max);
|
||||||
|
@ -261,7 +261,7 @@ int QZ_GL_GetAttribute (_THIS, SDL_GLattr attrib, int* value) {
|
||||||
}
|
}
|
||||||
case SDL_GL_ACCELERATED_VISUAL:
|
case SDL_GL_ACCELERATED_VISUAL:
|
||||||
{
|
{
|
||||||
long val;
|
GLint val;
|
||||||
/* FIXME: How do we get this information here?
|
/* FIXME: How do we get this information here?
|
||||||
[fmt getValues: &val forAttribute: NSOpenGLPFAAccelerated attr forVirtualScreen: 0];
|
[fmt getValues: &val forAttribute: NSOpenGLPFAAccelerated attr forVirtualScreen: 0];
|
||||||
*/
|
*/
|
||||||
|
@ -271,7 +271,7 @@ int QZ_GL_GetAttribute (_THIS, SDL_GLattr attrib, int* value) {
|
||||||
}
|
}
|
||||||
case SDL_GL_SWAP_CONTROL:
|
case SDL_GL_SWAP_CONTROL:
|
||||||
{
|
{
|
||||||
long val;
|
GLint val;
|
||||||
[ gl_context getValues: &val forParameter: NSOpenGLCPSwapInterval ];
|
[ gl_context getValues: &val forParameter: NSOpenGLCPSwapInterval ];
|
||||||
*value = val;
|
*value = val;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue