Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mesa
piglit
Commits
6a07be8d
Commit
6a07be8d
authored
Jun 22, 2011
by
Brian Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
read-front: move piglit_ortho_projection() to piglit_display()
parent
fb33c533
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
tests/general/read-front.c
tests/general/read-front.c
+2
-15
No files found.
tests/general/read-front.c
View file @
6a07be8d
...
...
@@ -47,6 +47,8 @@ piglit_display(void)
static
float
red
[]
=
{
1
.
0
,
0
.
0
,
0
.
0
,
0
.
0
};
static
float
green
[]
=
{
0
.
0
,
1
.
0
,
0
.
0
,
0
.
0
};
piglit_ortho_projection
(
piglit_width
,
piglit_height
,
GL_FALSE
);
glClearColor
(
1
.
0
,
0
.
0
,
0
.
0
,
0
.
0
);
glClear
(
GL_COLOR_BUFFER_BIT
);
glColor4fv
(
green
);
...
...
@@ -65,22 +67,7 @@ piglit_display(void)
}
static
void
reshape
(
int
width
,
int
height
)
{
piglit_width
=
width
;
piglit_height
=
height
;
glViewport
(
0
,
0
,
width
,
height
);
glMatrixMode
(
GL_PROJECTION
);
glLoadIdentity
();
glOrtho
(
0
.
0
,
width
,
0
.
0
,
height
,
-
1
.
0
,
1
.
0
);
glMatrixMode
(
GL_MODELVIEW
);
glLoadIdentity
();
}
void
piglit_init
(
int
argc
,
char
**
argv
)
{
reshape
(
piglit_width
,
piglit_height
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment