summaryrefslogtreecommitdiff
path: root/cube-tex.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-03-27 11:17:53 -0400
committerRob Clark <robdclark@gmail.com>2017-03-27 11:19:16 -0400
commit4f4801b2b1f1aa00914f0c79fd3ab5ae8db2d284 (patch)
tree1374df73dc31d9190022003b946d8071fd66c8dc /cube-tex.c
parentd874c78118549ce0a25e91eb09b292c3ce804906 (diff)
downloadkmscube-4f4801b2b1f1aa00914f0c79fd3ab5ae8db2d284.tar.gz
cube-tex: make a couple things static
(otherwise there will be symbol conflicts in the next patch.. also these should be const) Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'cube-tex.c')
-rw-r--r--cube-tex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cube-tex.c b/cube-tex.c
index 0caeaea..427da75 100644
--- a/cube-tex.c
+++ b/cube-tex.c
@@ -46,7 +46,7 @@ struct {
GLuint tex[2];
} gl;
-const struct egl *egl = &gl.egl;
+static const struct egl *egl = &gl.egl;
static const GLfloat vVertices[] = {
// front
@@ -81,7 +81,7 @@ static const GLfloat vVertices[] = {
+1.0f, -1.0f, +1.0f,
};
-GLfloat vTexCoords[] = {
+static const GLfloat vTexCoords[] = {
//front
1.0f, 1.0f,
0.0f, 1.0f,