mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- print buffer info only if the buffer type is used.
- removed some GL specs that are not informative in GZDoom's context.
This commit is contained in:
parent
50ab301bd8
commit
c29e96d369
1 changed files with 33 additions and 19 deletions
|
@ -236,12 +236,23 @@ void gl_LoadExtensions()
|
||||||
}
|
}
|
||||||
|
|
||||||
int v;
|
int v;
|
||||||
|
|
||||||
|
if (gl.lightmethod != LM_SOFTWARE && !(gl.flags & RFL_SHADER_STORAGE_BUFFER))
|
||||||
|
{
|
||||||
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
||||||
gl.maxuniforms = v;
|
gl.maxuniforms = v;
|
||||||
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
||||||
gl.maxuniformblock = v;
|
gl.maxuniformblock = v;
|
||||||
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
||||||
gl.uniformblockalignment = v;
|
gl.uniformblockalignment = v;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gl.maxuniforms = 0;
|
||||||
|
gl.maxuniformblock = 0;
|
||||||
|
gl.uniformblockalignment = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &gl.max_texturesize);
|
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &gl.max_texturesize);
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||||
|
@ -289,21 +300,24 @@ void gl_PrintStartupLog()
|
||||||
Printf("\nMax. texture size: %d\n", v);
|
Printf("\nMax. texture size: %d\n", v);
|
||||||
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &v);
|
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &v);
|
||||||
Printf ("Max. texture units: %d\n", v);
|
Printf ("Max. texture units: %d\n", v);
|
||||||
glGetIntegerv(GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, &v);
|
glGetIntegerv(GL_MAX_VARYING_FLOATS, &v);
|
||||||
Printf ("Max. fragment uniforms: %d\n", v);
|
Printf ("Max. varying: %d\n", v);
|
||||||
glGetIntegerv(GL_MAX_VERTEX_UNIFORM_COMPONENTS, &v);
|
|
||||||
Printf ("Max. vertex uniforms: %d\n", v);
|
if (gl.lightmethod != LM_SOFTWARE && !(gl.flags & RFL_SHADER_STORAGE_BUFFER))
|
||||||
|
{
|
||||||
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
glGetIntegerv(GL_MAX_UNIFORM_BLOCK_SIZE, &v);
|
||||||
Printf ("Max. uniform block size: %d\n", v);
|
Printf ("Max. uniform block size: %d\n", v);
|
||||||
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
glGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &v);
|
||||||
Printf ("Uniform block alignment: %d\n", v);
|
Printf ("Uniform block alignment: %d\n", v);
|
||||||
|
}
|
||||||
|
|
||||||
glGetIntegerv(GL_MAX_VARYING_FLOATS, &v);
|
if (gl.flags & RFL_SHADER_STORAGE_BUFFER)
|
||||||
Printf ("Max. varying: %d\n", v);
|
{
|
||||||
glGetIntegerv(GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS, &v);
|
glGetIntegerv(GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS, &v);
|
||||||
Printf("Max. combined shader storage blocks: %d\n", v);
|
Printf("Max. combined shader storage blocks: %d\n", v);
|
||||||
glGetIntegerv(GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS, &v);
|
glGetIntegerv(GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS, &v);
|
||||||
Printf("Max. vertex shader storage blocks: %d\n", v);
|
Printf("Max. vertex shader storage blocks: %d\n", v);
|
||||||
|
}
|
||||||
|
|
||||||
// For shader-less, the special alphatexture translation must be changed to actually set the alpha, because it won't get translated by a shader.
|
// For shader-less, the special alphatexture translation must be changed to actually set the alpha, because it won't get translated by a shader.
|
||||||
if (gl.glslversion == 0)
|
if (gl.glslversion == 0)
|
||||||
|
|
Loading…
Reference in a new issue