I just added a cast to (GLInt*) and it compiled fine.
eg.
Code: Select all
if (err = CGLGetVirtualScreen(cctx, (GLint*)&d_screen))
and
Code: Select all
if (err = CGLChoosePixelFormat(fmtAttrs, &pix_fmt, (GLint*)&fmt_count))
Moderators: CEGUI MVP, CEGUI Team
Code: Select all
if (err = CGLGetVirtualScreen(cctx, (GLint*)&d_screen))
Code: Select all
if (err = CGLChoosePixelFormat(fmtAttrs, &pix_fmt, (GLint*)&fmt_count))
CrazyEddie wrote:Hi,
Is this when being compiled with Xcode? Which version of the development tools is in use? Which SDK version is this being built against?
Code: Select all
Compiling:CEGUIOpenGLApplePBTextureTarget.cpp
g++ -arch i386 -w -mmacosx-version-min=10.3 -c -O3 -Iceguiopengl.mod -Ifreetype.mod/include -Iregex.mod/src -Ifreeimage.mod/src -Icegui.mod/cegui/src/implementations/mac -Icegui.mod/cegui/include -Iglew.mod/GL -Icegui.mod/cegui/include/RendererModules/OpenGL -fexceptions -DPCRE_STATIC -DCEGUI_STATIC -DCEGUI_FALAGARD_RENDERER -DCEGUI_WITH_TINYXML -DCEGUI_CODEC_FREEIMAGE -o
cegui.mod/cegui/src/RendererModules/OpenGL/.bmx/CEGUIOpenGLApplePBTextureTarget.cpp.debug.macos.x86.o
cegui.mod/cegui/src/RendererModules/OpenGL/CEGUIOpenGLApplePBTextureTarget.cpp
cegui.mod/cegui/src/RendererModules/OpenGL/CEGUIOpenGLApplePBTextureTarget.cpp: In constructor ‘CEGUI::OpenGLApplePBTextureTarget::OpenGLApplePBTextureTarget(CEGUI::OpenGLRenderer&)’:
cegui.mod/cegui/src/RendererModules/OpenGL/CEGUIOpenGLApplePBTextureTarget.cpp:67: error: invalid conversion from ‘long int*’ to ‘GLint*’
cegui.mod/cegui/src/RendererModules/OpenGL/CEGUIOpenGLApplePBTextureTarget.cpp:67: error: initializing argument 2 of ‘CGLError CGLGetVirtualScreen(_CGLContextObject*, GLint*)’
Return to “Bug Reports, Suggestions, Feature Requests”
Users browsing this forum: No registered users and 2 guests