Age | Commit message (Collapse) | Author | Files | Lines |
|
To get immediate output on Windows.
Trivial.
|
|
Rendering from multiple processes into the same X window is not
something that works in practice anymore.
Nowadays interprocess rendering is better done with GLX/EGL extensions
for that effect.
https://bugs.freedesktop.org/show_bug.cgi?id=30279
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85199
Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
To reduce the number of parameters.
Acked-by: Matt Turner <mattst88@gmail.com>
|
|
To reduce the number of parameters.
Acked-by: Matt Turner <mattst88@gmail.com>
|
|
v2: replace "quiet" with "brief" in usage(), per Ilia.
Based on a patch by Bryan Quigley <gquigs+bugs@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90438
Acked-by: Matt Turner <mattst88@gmail.com>
|
|
The svga driver (and maybe others) decompose line loops into disjoint
lines so the line stipple counter isn't preserved from one segment to
the next. Use GL_LINE_STRIP instead to work around that.
|
|
es2_info, es2gears_x11 and es2tri require X11, so don't build them if X11
is disabled.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88618
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
|
|
By including glew.h, as done in other examples.
Trivial.
|
|
As they cause warnings on MinGW.
Trivial.
|
|
|
|
When torus object is scaled up/down via glScalef call the lighting
effect is incorrectly expressed on render target because normals'
length is also changed when vertices are scaled up/down.
This patch enables "automatic normalization" of normals, which
is one of well-known ways to avoid this kind of distortion.
Reference:
www.opengl.org/sdk/docs/man2/xhtml/glScale.xml
Notes
If scale factors other than 1 are applied to the modelview matrix
and lighting is enabled, lighting often appears wrong.
In that case, enable automatic normalization of normals by
calling glEnable with the argument GL_NORMALIZE.
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
This just queries our context, it doesn't attempt to enumerate all the
available renderers.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the
old copyright name is creating unnecessary confusion, hence this change.
|
|
I suddenly started seeing many simple GL apps, including wglinfo,
choosing Microsoft GDI OpenGL implementation, even though hardware
accelerated pixel formats were available.
It turned out that:
- the screen was in 16bpp mode (some WHCK tests have the nasty habit
of doing that)
- NVIDIA opengl driver only reports R5G6B5 pixel formats (ie no alpha
bits) in this case
- non-zero cAlphaBits was being passed to ChoosePixelformat (or in the
wglinfo case, garbage, as the structure wasn't being properly zeroed)
- ChoosePixelFormat will choose a SW pixel format if has to in order to
honour non-zero cAlphaBits.
At least on the wglinfo and friends case the alpha bits are not needed,
so this change will make sure that HW accelerated formats will be chosen
before SW ones.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
|
|
Prevents warnings on MinGW due to conflicting linkage types for errno.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
|
|
Avoids "warning: command line option ‘-W...’ is valid for Ada/C/ObjC but not for
C++".
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
|
|
|
|
If no command line argument is given, draw 50 points (25 lines).
|
|
By going from newest to oldest we can simplify the glxinfo/wglinfo
loops over the possible GL versions.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
|
|
Just like the configure.ac does.
Trivial.
|
|
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
Previously we'd get a GLXBadPixmap error.
Signed-off-by: Nathan Kidd <nkidd@opentext.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
|
|
commit e769bc682b4a0d0f597286b067f54f923d159866 broke direct rendering
context because it defaults to indirect rendering and there is no way
to reverse it.
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
As with glxinfo, we first report version/extension info for a compatibility
profile context, then report version/extension info for a core profile
context.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Before, we always reported zeros in the multisample columns of the
format list. Since PIXELFORMATDESCRIPTOR doesn't have fields for
multisample, we use a new format_info structure to extend that type.
We can only query this info with the wglGetPixelFormatAttribivARB()
function which is part of the WGL_ARB_pixel_format extension.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
|
|
Matches behavior with action-if-not-given
Reviewed-by: Julien Cristau <jcristau@debian.org>
|
|
Reviewed-by: Julien Cristau <jcristau@debian.org>
|
|
And add support for qualifying a limit query with an OpenGL version
instead of an extension string.
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
|
|
This is not part of the GL_ARB_vertex_attrib_binding extension.
It's part of OpenGL 4.4.
Fixes compilation failure if glext.h doesn't have the GL 4.4 #defines.
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
|
|
|
|
|
|
Updated patch for refactored glxinfo/wglinfo code by Andreas Boll.
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Updated patch for refactored glxinfo/wglinfo code by Andreas Boll.
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Updated patch for refactored glxinfo/wglinfo code by Brian Paul.
Signed-off-by: Brian Paul <brianp@vmware.com>
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
The code did not correctly handle super-string handling. For example,
if we were searching for "WGL_ARB_pixel_format" but we found
"WGL_ARB_pixel_format_float" we'd stop searching and return 0. Now
we search past that initial, incorrect match.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
|
|
Prevents missing snprintf with MSVC.
|
|
GL/glext.h is not commonly available when building on Windows (though
recent MinGW versions seem to have it.) So get the defines from
GL/glew.h to avoid introducing a new build
Trivial. Verified glxinfo and wglinfo build correctly.
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
So that we can share some of the code with wglinfo.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
|
|
Add proper <EGL/egl.h> include and cast in order to fix compiler
warnings related to the use of eglGetProcAddress.
Reviewed-By: Tapani Pälli <tapani.palli@intel.com>
|
|
Too many warnings, and GLUT is not something we can easily replace.
|
|
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=78101
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
|
|
Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
|
|
Signed-off-by: Fabian Bieler <fabianbieler@fastmail.fm>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
|