Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
acgl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ACGL
acgl
Commits
b09e0f70
Commit
b09e0f70
authored
Jan 06, 2013
by
Robert Menzel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for the core profile and warnings
parent
5612a254
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
include/ACGL/OpenGL/Tools.hh
include/ACGL/OpenGL/Tools.hh
+7
-3
src/ACGL/ACGL.cc
src/ACGL/ACGL.cc
+3
-3
No files found.
include/ACGL/OpenGL/Tools.hh
View file @
b09e0f70
...
...
@@ -45,11 +45,15 @@ inline GLint getGLTypeSize ( GLenum _type )
inline
GLuint
getNumberOfChannels
(
GLenum
_format
)
{
// GLES formats:
if
(
_format
==
GL_ALPHA
||
_format
==
GL_LUMINANCE
||
_format
==
GL_DEPTH_COMPONENT
)
return
1
;
if
(
_format
==
GL_LUMINANCE_ALPHA
)
return
2
;
if
(
_format
==
GL_ALPHA
||
_format
==
GL_DEPTH_COMPONENT
)
return
1
;
if
(
_format
==
GL_RGB
)
return
3
;
if
(
_format
==
GL_RGBA
)
return
4
;
#ifdef ACGL_OPENGL_CORE_PROFILE
// removed from core:
if
(
_format
==
GL_LUMINANCE
)
return
1
;
if
(
_format
==
GL_LUMINANCE_ALPHA
)
return
2
;
#endif
#ifndef ACGL_OPENGL_ES
// additional desktop formats:
if
(
_format
==
GL_R8I
||
_format
==
GL_R16I
||
_format
==
GL_R32I
...
...
src/ACGL/ACGL.cc
View file @
b09e0f70
...
...
@@ -33,7 +33,7 @@ bool init(void)
#endif
return
false
;
}
#elif
ACGL_EXTENSION_LOADER_GLLOADGEN
#elif
defined( ACGL_EXTENSION_LOADER_GLLOADGEN )
int
loaded
=
ogl_LoadFunctions
();
if
(
loaded
==
ogl_LOAD_FAILED
)
{
...
...
@@ -48,9 +48,9 @@ bool init(void)
Utils
::
debug
()
<<
"OpenGL Version: "
<<
OpenGL
::
getOpenGLMajorVersionNumber
()
<<
"."
<<
OpenGL
::
getOpenGLMinorVersionNumber
()
<<
std
::
endl
;
#ifdef ACGL_OPENGL_ES
int
versionToTest
=
ACGL_OPENGLES_VERSION
;
unsigned
int
versionToTest
=
ACGL_OPENGLES_VERSION
;
#else
int
versionToTest
=
ACGL_OPENGL_VERSION
;
unsigned
int
versionToTest
=
ACGL_OPENGL_VERSION
;
#endif
if
(
OpenGL
::
getOpenGLVersionNumber
()
<
versionToTest
)
{
...
...
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