Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
piglit
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
17
Issues
17
List
Boards
Labels
Milestones
Merge Requests
33
Merge Requests
33
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mesa
piglit
Commits
e7814f82
Commit
e7814f82
authored
Mar 05, 2010
by
Vinson Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbo-blit: s/glBindFramebuffer/glBindFramebufferEXT/
Fixes build on Ubuntu 9.04.
parent
3d54f508
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
tests/fbo/fbo-blit.c
tests/fbo/fbo-blit.c
+9
-9
No files found.
tests/fbo/fbo-blit.c
View file @
e7814f82
...
...
@@ -143,8 +143,8 @@ piglit_display(void)
fb
=
make_fbo
((
PAD
+
SIZE
)
*
2
,
(
PAD
+
SIZE
)
*
2
);
glBindFramebuffer
(
GL_DRAW_FRAMEBUFFER_EXT
,
fb
);
glBindFramebuffer
(
GL_READ_FRAMEBUFFER_EXT
,
0
);
glBindFramebuffer
EXT
(
GL_DRAW_FRAMEBUFFER_EXT
,
fb
);
glBindFramebuffer
EXT
(
GL_READ_FRAMEBUFFER_EXT
,
0
);
glViewport
(
0
,
0
,
fbo_width
,
fbo_height
);
piglit_ortho_projection
(
fbo_width
,
fbo_height
,
GL_FALSE
);
glClearColor
(
1
.
0
,
0
.
0
,
1
.
0
,
0
.
0
);
...
...
@@ -156,8 +156,8 @@ piglit_display(void)
/* Now that we have correct samples, blit things around.
* FB -> WIN
*/
glBindFramebuffer
(
GL_DRAW_FRAMEBUFFER_EXT
,
0
);
glBindFramebuffer
(
GL_READ_FRAMEBUFFER_EXT
,
fb
);
glBindFramebuffer
EXT
(
GL_DRAW_FRAMEBUFFER_EXT
,
0
);
glBindFramebuffer
EXT
(
GL_READ_FRAMEBUFFER_EXT
,
fb
);
glBlitFramebufferEXT
(
PAD
,
PAD
,
PAD
+
SIZE
,
PAD
+
SIZE
,
PAD
,
PAD
*
2
+
SIZE
,
...
...
@@ -165,8 +165,8 @@ piglit_display(void)
GL_COLOR_BUFFER_BIT
,
GL_NEAREST
);
/* WIN -> FB */
glBindFramebuffer
(
GL_DRAW_FRAMEBUFFER_EXT
,
fb
);
glBindFramebuffer
(
GL_READ_FRAMEBUFFER_EXT
,
0
);
glBindFramebuffer
EXT
(
GL_DRAW_FRAMEBUFFER_EXT
,
fb
);
glBindFramebuffer
EXT
(
GL_READ_FRAMEBUFFER_EXT
,
0
);
glBlitFramebufferEXT
(
PAD
,
PAD
,
PAD
+
SIZE
,
PAD
+
SIZE
,
PAD
,
PAD
*
2
+
SIZE
,
...
...
@@ -174,15 +174,15 @@ piglit_display(void)
GL_COLOR_BUFFER_BIT
,
GL_NEAREST
);
/* FB -> WIN back to verify WIN -> FB */
glBindFramebuffer
(
GL_DRAW_FRAMEBUFFER_EXT
,
0
);
glBindFramebuffer
(
GL_READ_FRAMEBUFFER_EXT
,
fb
);
glBindFramebuffer
EXT
(
GL_DRAW_FRAMEBUFFER_EXT
,
0
);
glBindFramebuffer
EXT
(
GL_READ_FRAMEBUFFER_EXT
,
fb
);
glBlitFramebufferEXT
(
PAD
,
PAD
*
2
+
SIZE
,
PAD
+
SIZE
,
(
PAD
*
2
+
SIZE
)
+
SIZE
,
PAD
,
PAD
*
3
+
SIZE
*
2
,
PAD
+
SIZE
,
(
PAD
*
3
+
SIZE
*
2
)
+
SIZE
,
GL_COLOR_BUFFER_BIT
,
GL_NEAREST
);
glBindFramebuffer
(
GL_FRAMEBUFFER_EXT
,
0
);
glBindFramebuffer
EXT
(
GL_FRAMEBUFFER_EXT
,
0
);
pass
=
verify_color_rect
(
PAD
,
PAD
,
SIZE
,
SIZE
)
&&
pass
;
pass
=
verify_color_rect
(
PAD
,
PAD
*
2
+
SIZE
,
SIZE
,
SIZE
)
&&
pass
;
...
...
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