We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d98eb8c commit f73f821Copy full SHA for f73f821
2 files changed
examples/cube/cube.c
@@ -94,10 +94,10 @@ int create_gfx(int xsz, int ysz)
94
95
int attr[] = {
96
GLX_RGBA, GLX_DOUBLEBUFFER,
97
- GLX_RED_SIZE, 8,
98
- GLX_GREEN_SIZE, 8,
99
- GLX_BLUE_SIZE, 8,
100
- GLX_DEPTH_SIZE, 24,
+ GLX_RED_SIZE, 1,
+ GLX_GREEN_SIZE, 1,
+ GLX_BLUE_SIZE, 1,
+ GLX_DEPTH_SIZE, 16,
101
None
102
};
103
src/proto.h
@@ -1,7 +1,7 @@
1
#ifndef PROTO_H_
2
#define PROTO_H_
3
4
-#ifdef __sgi
+#if defined(__sgi) || defined(__sun)
5
#include <inttypes.h>
6
#else
7
#include <stdint.h>
0 commit comments