Skip to content

Commit f73f821

Browse files
committed
include inttypes.h in Solaris instead of stdint.h and let the cube
example request lest extravagant OpenGL context attributes.
1 parent d98eb8c commit f73f821

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/cube/cube.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ int create_gfx(int xsz, int ysz)
9494

9595
int attr[] = {
9696
GLX_RGBA, GLX_DOUBLEBUFFER,
97-
GLX_RED_SIZE, 8,
98-
GLX_GREEN_SIZE, 8,
99-
GLX_BLUE_SIZE, 8,
100-
GLX_DEPTH_SIZE, 24,
97+
GLX_RED_SIZE, 1,
98+
GLX_GREEN_SIZE, 1,
99+
GLX_BLUE_SIZE, 1,
100+
GLX_DEPTH_SIZE, 16,
101101
None
102102
};
103103

src/proto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef PROTO_H_
22
#define PROTO_H_
33

4-
#ifdef __sgi
4+
#if defined(__sgi) || defined(__sun)
55
#include <inttypes.h>
66
#else
77
#include <stdint.h>

0 commit comments

Comments
 (0)