Vladimír Vondruš
70c0ca7c66
Fix constexpr mismatch on MSVC 2015 and GLES.
11 years ago
Vladimír Vondruš
e7e8b75d06
Platform: properly find and use EGL when needed.
...
Otherwise I was using some ghost remains from elsewhere.
11 years ago
Vladimír Vondruš
222947ae2c
Avoid including unsupported headers on ES2.
11 years ago
Vladimír Vondruš
5922c859a2
Don't compile desktop-only stuff on ES.
11 years ago
Vladimír Vondruš
ebd8794ce6
Don't include ES3/desktop-only header on ES2.
11 years ago
Vladimír Vondruš
3d7953f2e9
Test Version debug output.
...
Somehow it wasn't anywhere. Heh?
11 years ago
Vladimír Vondruš
8d5cccf285
Use BPTC instead of S3TC in 3D compressed texture test.
...
Mesa properly complained that S3TC isn't supported on 3D textures using
GL error (good), while AMD and NV had both their own unique data
corruption/random shuffling (bad!).
BPTC is available only on desktop, will have to wait until ASTC HDR is
more widely available.
11 years ago
Vladimír Vondruš
0d2ee71f64
S3TC really is *not* supported on 3D textures.
11 years ago
Vladimír Vondruš
8ebbd5be45
Use Texture2DArray instead of Texture3D for compressed pixel storage test.
...
Mesa drivers (rightfuly) complained that S3TC is not supported on 3D
textures, the packing had weird behavior on NVidia but it passed w/o
problems on AMD. Now should be okay on all three, yay!
11 years ago
Vladimír Vondruš
eb00614ece
Fix compilation of transform feedback test shaders on Mesa.
...
Apparently they need to write something to gl_Position.
11 years ago
Vladimír Vondruš
c2ceda73d1
Fix compilation of MeshGLTest shader.
...
Precision qualifiers are not available in GLSL 1.20 and non-NVidia cards
are complaining.
11 years ago
Vladimír Vondruš
bbeed0ad83
Use CUBE_MAP_POSITIIVE_X instead of CUBE_MAP in glGetTexLevelParameter.
...
Pre-DSA code path needs to pass specific slice of a cube map to all
getters instead of just GL_TEXTURE_CUBE_MAP. I did that properly for
image size query, which weirdly enough, had its own implementation, but
forgot to do that in compressed image getters and, because I have DSA
drivers, never tested that on pre-DSA contexts.
Using single implementation of image size with explicit target
parameter now.
11 years ago
Vladimír Vondruš
420b3435f2
Use glGetStringi() on Emscripten/WebGL 2.
...
Available in recent versions.
11 years ago
Vladimír Vondruš
39ec4900eb
Various cleanup.
11 years ago
Vladimír Vondruš
597f37c177
GCC 4.7 compatibility: some {}-related issues.
...
Travis build is broken, but worked for me locally. Weird.
11 years ago
Vladimír Vondruš
ab2a5c8a28
Fix compilation on Clang.
...
Apparently I can't call conversion operator using {}.
11 years ago
Vladimír Vondruš
da2ac00478
Shaders: ability to do alpha-masking with Phong.
...
All Color3 parameters are now Color4, but the API should be backwards
compatible as Color4 is implicitly convertible from Color3.
11 years ago
Vladimír Vondruš
2ad49aa351
Support for KHR_blend_equation_advanced{,_coherent}.
11 years ago
Vladimír Vondruš
f41321f930
MSVC 2015 compatibility: yet another {}-related bug.
...
Why am I intentionally doing this to myself?
11 years ago
Vladimír Vondruš
f2e20ba5c0
Math: default alpha parameter also for Color4::fromHSV().
...
Not sure why this was omitted.
11 years ago
Vladimír Vondruš
45e6985f25
SceneGraph: fix MSVC 2015 shadowing warnings.
11 years ago
Vladimír Vondruš
1965dffbbd
Text: prefix private member variables with underscore.
...
Fixes MSVC 2015 shadowing warning.
11 years ago
Vladimír Vondruš
1ad5f330b0
MeshTools: silence conversion warning on MSVC.
11 years ago
Vladimír Vondruš
127f34b657
Math: fix typedef shadowing.
11 years ago
Vladimír Vondruš
5391ab247e
Math/Algorithms: fix variable shadowing.
11 years ago
Vladimír Vondruš
8b6ff33476
DebugTools: prefix private member variables with underscore.
...
Fixes MSVC 2015 variable shadowing warnings. Fortunately no bug caused
by these.
11 years ago
Squareys
2275544fa9
Audio: Expand Source test and fix bugs revealed in the process
...
Only minor copy past bugs introduced when implementing the getters.
Signed-off-by: Squareys <Squareys@googlemail.com>
11 years ago
Squareys
c68e77e247
Audio: Add debug operator for Audio::Renderer::DistanceModel
...
Signed-off-by: Squareys <Squareys@googlemail.com>
11 years ago
Squareys
65c6eb78e3
Audio: Expand RendererTest
...
Signed-off-by: Squareys <Squareys@googlemail.com>
11 years ago
Squareys
badbc41b4e
Audio: Implement missing getters for Audio::Renderer
...
Signed-off-by: Squareys <Squareys@googlemail.com>
11 years ago
Squareys
111f566f2f
Audio: Add remaining getters to Source
...
Signed-off-by: Squareys <Squareys@googlemail.com>
11 years ago
Vladimír Vondruš
d7a922bfb5
Remove old std::u32string-related MinGW workarounds.
11 years ago
Vladimír Vondruš
e2c1ca1487
Remove old std::to_string()-related MinGW workarounds.
11 years ago
Vladimír Vondruš
d971d388c2
MagnumFont: at least some test for glyph cache creation.
...
Had to create some non-zero-size TGA file for it to pass.
11 years ago
Vladimír Vondruš
0df7b1b40d
Avoid ambiguous overloads when passing Containers::Array to BufferImage.
11 years ago
Vladimír Vondruš
b3f20e41fd
Passing nullptr data to BufferImage would assert anyway.
...
I can't think of any valid use case, so no problem when these are
producing deprecated warnings.
11 years ago
Vladimír Vondruš
0c086b631b
Fix OpenGL object label queries.
...
Passing 0 as bufSize to glGetObjectLabel() is not allowed by the spec
even when just querying the size, thus passing the maximum. Might
hopefully fix the label queries on AMD drivers.
11 years ago
Vladimír Vondruš
7230d47af8
magnum-distancefieldconverter: use AnyImageConverter by default.
11 years ago
Vladimír Vondruš
e7f2b41c95
Audio: use proper function.
...
Thanks, MSVC, for the warning!
11 years ago
Vladimír Vondruš
3b03d15009
Audio: provide access to plugin manager in AbstractImporter.
...
So it is possible to create also AnyAudioImporter.
11 years ago
Vladimír Vondruš
21fc790632
Trade: make AbstractImageConverter API non-const.
...
In the particular case of AnyImageConverter the function needs to access
manager and load/instantiate plugin using it, which is non-const
operation. More generally, it puts unnecessary restrictions on what the
plugin can and cannot do.
11 years ago
Vladimír Vondruš
199d086419
Trade: provide access to plugin manager in AbstractImageConverter.
...
Similarly to what is done in AbstractImporter, allows me to implement
AnyImageConverter plugin.
11 years ago
Vladimír Vondruš
2cbb57c6da
Trade: improve AbstractImageConverter API.
...
Provide a way to convert compressed images to data/file (i.e. saving
DXT5-compressed image data to DDS file), improve feature flags so that
the plugin can properly advertise what's supported (for example some
plugin may just be able to compress RGBA to DXT5, but not to save that to
DDS file).
This is backwards-incompatible API breakage (renamed enum value), but
because the original API wasn't in any official release yet, I'm not
doing any deprecation and backwards compatibility.
11 years ago
Vladimír Vondruš
e0b5d05b9f
Allow creating ImageView with nullptr data.
11 years ago
Vladimír Vondruš
0f7f2e0780
Verify that it's possible to create ImageView with nullptr data.
...
For example for old-style texture allocation using setImage(). Asserts
now.
11 years ago
Vladimír Vondruš
fef46953ec
Define-out precision qualifiers in test shaders for GLSL 1.20.
...
Causes the errors to abort on AMD cards.
11 years ago
Vladimír Vondruš
9373d5cd45
Missing includes.
...
YES! The last commit before making MSVC 2015 green and I broke build
*everywhere*. Dammit.
11 years ago
Vladimír Vondruš
e1651f7388
Provide AbstractQuery forward declaration.
...
It is used now (in state tracker).
11 years ago
Vladimír Vondruš
7e80d1f7ae
Cleanup.
11 years ago
Vladimír Vondruš
69949b991a
Fix memory corruption on MSVC.
...
I can't believe that you can just forget to include some file and it
will SILENTLY PASS and then crashes horribly at runtime because each
translation unit thought that given member function pointer had
completely different size. THIS IS NOT ACCEPTABLE.
11 years ago