Jakob Bornecrantz
71487a41fe
vrend: Replace all uses of glDrawBuffer with glDrawBuffers
...
OpenGL ES does not have glDrawBuffer, but it does have glDrawBuffers. It has
been available in Desktop OpenGL since 2.0 and was exposed in OpenGL ES 3.0.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Jakob Bornecrantz <jakob.bornecrantz@collabora.com>
7 years ago
Li Qiang
6eb13f7a2d
vrend: fix memory leak in int blit context
...
The 'blit_ctx->initialised' is not setted to true.
Every time init blit context, it will create a new
'blit_ctx->gl_context' thus causing a memory leak.
This patch avoid this.
Signed-off-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
8 years ago
Dave Airlie
c49117ab45
blit: handle emulated alpha sources as well just in case.
...
We haven't seen this yet, but it is a potential problem we should fix.
9 years ago
Dave Airlie
20916f13f6
vrend: fix text in stellarium.
...
If we are blitting to an emulated alpha we should rewrite inside
the shader, not in the incoming texture swizzle.
9 years ago
Marc-André Lureau
53286c6f5a
Fix -Wformat-nonliteral warnings
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Dave Airlie
454a868a8b
renderer: make some char * into const char *.
...
This fixes a bunch of warnings about losing constness.
Signed-off-by: Dave Airlie <airlied@redhat.com>
9 years ago
Dave Airlie
7e85c2f114
renderer: CLEANUP: whitespace and reindent
...
this uses the mesa coding style, pray I never have to do
this again.
strip all trailing whitespace as much as possible
10 years ago
Dave Airlie
59b9cb549a
renderer: fix some minor sparse warnings
10 years ago
Dave Airlie
ca23e98b22
renderer: CLEANUP: boolean/GLboolean -> bool
...
use stdbool.h as much as possible
some of the gallium code imported uses boolean
so leave it alone for now
10 years ago
Dave Airlie
d0f866ad4b
renderer: fix blitter cube map array shader
...
this needs an extension enabled to work.
10 years ago
Marc-André Lureau
e9ca2d4ad3
blitter: fix invalid texelFetch call
...
Triggered by piglit/bin/ext_framebuffer_multisample-no-color 2 depth single -auto -fbo
10 years ago
Dave Airlie
03e3116a75
import latest renderer code
10 years ago