1
+ /* Last saved: Fri 29 May 2009 04:48:33 PM */
2
+
1
3
/* Copyright (c) 1998 Kenneth Albanowski. All rights reserved.
2
4
* Copyright (c) 2007 Bob Free. All rights reserved.
3
5
* This program is free software; you can redistribute it and/or
@@ -316,6 +318,7 @@ neoconstant(char * name, int arg)
316
318
#undef f
317
319
#endif /* End IN_POGL_CONST_XS */
318
320
321
+ #ifdef IN_POGL_GL_XS
319
322
/* Note: this is caching procs once for all contexts */
320
323
/* !!! This should instead cache per context */
321
324
#ifdef HAVE_GL
@@ -334,8 +337,10 @@ neoconstant(char * name, int arg)
334
337
#define testProc (proc ,name ) 1
335
338
#endif
336
339
#endif
340
+ #endif /* End IN_POGL_GL_XS */
337
341
338
342
343
+ #ifdef IN_POGL_GLX_XS
339
344
#ifdef HAVE_GLX
340
345
# define HAVE_GLpc /* Perl interface */
341
346
# define nativeWindowId (d , w ) (w)
@@ -358,8 +363,6 @@ AV *EventAv;
358
363
unsigned long LastEventMask ; /* !! Common for all the windows */
359
364
Display myDisplay ;
360
365
361
- #else
362
- # define InitSys ()
363
366
#endif /* defined __PM__ */
364
367
365
368
#ifdef HAVE_GLpc
@@ -381,6 +384,9 @@ static int default_attributes[] = { GLX_DOUBLEBUFFER, GLX_RGBA };
381
384
static int DBUFFER_HACK = 0 ;
382
385
#define __had_dbuffer_hack () (DBUFFER_HACK)
383
386
387
+ #endif /* End IN_POGL_GLX_XS */
388
+
389
+ /*
384
390
#define PackCallbackST(av,first) \
385
391
if (SvROK(ST(first)) && (SvTYPE(SvRV(ST(first))) == SVt_PVAV)){ \
386
392
int i; \
@@ -393,6 +399,7 @@ static int DBUFFER_HACK = 0;
393
399
for(i=first;i<items;i++) \
394
400
av_push(av, newSVsv(ST(i))); \
395
401
}
402
+ */
396
403
397
404
#ifdef GLUT_API_VERSION
398
405
@@ -17894,4 +17901,6 @@ glpHasGPGPU()
17894
17901
17895
17902
17896
17903
BOOT :
17904
+ #ifdef __PM__
17897
17905
InitSys ();
17906
+ #endif /* defined __PM__ */
0 commit comments