Hi Barry,

Your guy started with the OpenGL classes that John B. and I did a while ago.
If you add the word *Soft* before each word *Declare*, it should stop
crashing for you. Like this,

  #pragma DisableBackgroundTasks
  dim GrafPtr as integer
  
  #if TargetMacOS then
    Soft Declare Function callGL lib "OpenGLLibrary" alias "aglSetDrawable"
(ctx as integer, draw as integer) as boolean
  #endif
  
  #if targetCarbon then
    Soft Declare Function GetWindowPort Lib "CarbonLib" (window as integer)
as integer
  #endif
  
  #if targetPPC then
    return callGL(gl_ctx, gl_draw)
  #else
    GrafPtr = GetWindowPort(gl_draw)
    return callGL(gl_ctx, GrafPtr)
  #endif

You should just do a global search and replace and preface all of the
declare calls in the modules with soft declare calls.

--
Thomas C.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to