diff options
| author | bunnei <bunneidev@gmail.com> | 2019-05-19 14:02:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-19 14:02:58 -0400 |
| commit | d49efbfb4aa4e935f6c753871d6af6534701f542 (patch) | |
| tree | 79608391a32719a0be20c898fc79aba93f9f1d48 /src/video_core/renderer_opengl/gl_device.cpp | |
| parent | 13dda1d8ed4716f844706c52c8b4832b9b1ad8ce (diff) | |
| parent | d4df803b2b6bab96321ca69651e4132545b433eb (diff) | |
Merge pull request #2441 from ReinUsesLisp/al2p
shader: Implement AL2P and ALD.PHYS
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.cpp')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index b6d9e0ddb..38497678a 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -21,9 +21,18 @@ T GetInteger(GLenum pname) { Device::Device() { uniform_buffer_alignment = GetInteger<std::size_t>(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT); + max_vertex_attributes = GetInteger<u32>(GL_MAX_VERTEX_ATTRIBS); + max_varyings = GetInteger<u32>(GL_MAX_VARYING_VECTORS); has_variable_aoffi = TestVariableAoffi(); } +Device::Device(std::nullptr_t) { + uniform_buffer_alignment = 0; + max_vertex_attributes = 16; + max_varyings = 15; + has_variable_aoffi = true; +} + bool Device::TestVariableAoffi() { const GLchar* AOFFI_TEST = R"(#version 430 core uniform sampler2D tex; |
