Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
d885df03
Commit
d885df03
authored
May 31, 2012
by
daniel@transgaming.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do some cleanup in Framebuffer::completeness
Trac #20875 Signed-off-by: Nicolas Capens git-svn-id:
https://angleproject.googlecode.com/svn/trunk@1112
736b8ea6-26fd-11df-bfd4-992fa37f6226
parent
f20bc216
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Framebuffer.cpp
src/libGLESv2/Framebuffer.cpp
+13
-8
No files found.
src/libGLESv2/Framebuffer.cpp
View file @
d885df03
...
...
@@ -243,6 +243,7 @@ bool Framebuffer::hasStencil()
GLenum
Framebuffer
::
completeness
()
{
gl
::
Context
*
context
=
gl
::
getContext
();
int
width
=
0
;
int
height
=
0
;
int
samples
=
-
1
;
...
...
@@ -270,23 +271,27 @@ GLenum Framebuffer::completeness()
}
else
if
(
IsInternalTextureTarget
(
mColorbufferType
))
{
if
(
IsCompressed
(
colorbuffer
->
getInternalFormat
()))
{
return
GL_FRAMEBUFFER_UNSUPPORTED
;
}
GLenum
internalformat
=
colorbuffer
->
getInternalFormat
();
D3DFORMAT
d3dformat
=
colorbuffer
->
getD3DFormat
();
if
((
dx2es
::
IsFloat32Format
(
colorbuffer
->
getD3DFormat
())
&&
!
getContext
()
->
supportsFloat32RenderableTextures
())
||
(
dx2es
::
IsFloat16Format
(
colorbuffer
->
getD3DFormat
())
&&
!
getContext
()
->
supportsFloat16RenderableTextures
()))
if
(
IsCompressed
(
internalformat
)
||
internalformat
==
GL_LUMINANCE
||
internalformat
==
GL_LUMINANCE_ALPHA
)
{
return
GL_FRAMEBUFFER_UNSUPPORTED
;
}
if
(
colorbuffer
->
getInternalFormat
()
==
GL_LUMINANCE
||
colorbuffer
->
getInternalFormat
()
==
GL_LUMINANCE_ALPHA
)
if
((
dx2es
::
IsFloat32Format
(
d3dformat
)
&&
!
context
->
supportsFloat32RenderableTextures
())
||
(
dx2es
::
IsFloat16Format
(
d3dformat
)
&&
!
context
->
supportsFloat16RenderableTextures
()))
{
return
GL_FRAMEBUFFER_UNSUPPORTED
;
}
}
else
UNREACHABLE
();
else
{
UNREACHABLE
();
return
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
;
}
width
=
colorbuffer
->
getWidth
();
height
=
colorbuffer
->
getHeight
();
...
...
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