Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christian Butz
VTK
Commits
7e49ccd4
Commit
7e49ccd4
authored
Jul 11, 2013
by
Burlen Loring
Committed by
Code Review
Jul 11, 2013
Browse files
Merge topic 'opengl-error-hunt' into master
0994d6ca
OpenGL error hunt -- dashboard cleanup
parents
e07e9824
0994d6ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Rendering/OpenGL/vtkFrameBufferObject.cxx
View file @
7e49ccd4
...
...
@@ -529,17 +529,27 @@ void vtkFrameBufferObject::CreateColorBuffers(
//----------------------------------------------------------------------------
unsigned
int
vtkFrameBufferObject
::
GetMaximumNumberOfActiveTargets
()
{
GLint
maxbuffers
;
glGetIntegerv
(
vtkgl
::
MAX_DRAW_BUFFERS
,
&
maxbuffers
);
return
static_cast
<
unsigned
int
>
(
maxbuffers
);
unsigned
int
result
=
0
;
if
(
this
->
Context
)
{
GLint
maxbuffers
;
glGetIntegerv
(
vtkgl
::
MAX_DRAW_BUFFERS
,
&
maxbuffers
);
result
=
static_cast
<
unsigned
int
>
(
maxbuffers
);
}
return
result
;
}
//----------------------------------------------------------------------------
unsigned
int
vtkFrameBufferObject
::
GetMaximumNumberOfRenderTargets
()
{
GLint
maxColorAttachments
;
glGetIntegerv
(
vtkgl
::
MAX_COLOR_ATTACHMENTS_EXT
,
&
maxColorAttachments
);
return
static_cast
<
unsigned
int
>
(
maxColorAttachments
);
unsigned
int
result
=
0
;
if
(
this
->
Context
)
{
GLint
maxColorAttachments
;
glGetIntegerv
(
vtkgl
::
MAX_COLOR_ATTACHMENTS_EXT
,
&
maxColorAttachments
);
result
=
static_cast
<
unsigned
int
>
(
maxColorAttachments
);
}
return
result
;
}
//----------------------------------------------------------------------------
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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