summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2019-10-28Merge pull request #33104 from qarmin/fix_some_crashesRémi Verschelde
Fix some crashes and using null pointers
2019-10-28Merge pull request #33097 from clayjohn/GLES2-HTML-sampler_limitRémi Verschelde
Fixed using compressed textures and add work around for firefox webgl mesa sampler limit
2019-10-28Fix some crashes and using null pointersRafał Mikrut
2019-10-27Fixed using compressed textures and add work around for firefox webgl mesa ↵clayjohn
sampler limit
2019-10-27use proper texture in Android MSAAclayjohn
2019-10-26Merge pull request #32617 from Faless/fix/fopen_close_execRémi Verschelde
Disable file descriptor sharing with subprocs.
2019-10-26Merge pull request #32657 from ptrojahn/linesRémi Verschelde
Fix draw_rect
2019-10-26Merge pull request #33093 from clayjohn/GLES2-HTML-shadowsRémi Verschelde
Fix shadow mapping with RGBA textures on html
2019-10-26Fix shadow mapping with RGBA textures on htmlclayjohn
2019-10-26Merge pull request #33059 from akien-mga/webgl2-resize-non-po2Rémi Verschelde
WebGL 2.0: Force decompressing non power-of-2 textures with repeat/mipmap
2019-10-25Use WSAConnect instead of connect on Windows.Fabio Alessandrelli
The misterious windows networking stack... Using connect instead of WSAConnect causes socket error 10022 under certain conditions. See: https://github.com/godotengine/webrtc-native/ (issue 6) Having to guess, code path for connect is different then WSAConnect with NULL extra parameters. The only reference about weird error with this code mentions something called "Windows Filtering Platform" but windows internals are, as always, obscure. This might be something to try and report to Microsoft if anyone has the time to spare with the likely outcome of being ignored.
2019-10-25WebGL 2.0: Force decompressing non power-of-2 textures with repeat/mipmapRémi Verschelde
While OpenGL ES 3.0 and WebGL 2.0 both support non power-of-2 (NPOT) textures in their specification, the situation seems to be less clear about *compressed* NPOT textures using repeat or mipmap flags. At least Chrome on Linux doesn't seem to support this combination, and a variety of mobile hardware have similar limitations. As a workaround, we force decompressing such textures when running on WebGL 2.0, at the cost of loading time and memory usage. Fixes #33058.
2019-10-24Fix compilation warnings in macOS build, enable `warnings=extra werror=yes` ↵bruvzg
for macOS CI.
2019-10-11only render depth with alpha prepass on prepassclayjohn
2019-10-11Fix draw_rectPaul Trojahn
OpenGL uses the diamond exit rule to rasterize lines. If we don't shift the points down and to the right by 0.5, the line can sometimes miss a pixel when it shouldn't. The final fragment of a line isn't drawn. By drawing the lines clockwise, we can avoid a missing pixel in the rectangle. See section 3.4.1 in the OpenGL 1.5 specification. Fixes #32279
2019-10-09Merge pull request #32170 from puthre/ninepatch-fixRémi Verschelde
GLES2 & GLES3 Fixes ninepatch margins for high resolution textures.
2019-10-08Merge pull request #32616 from Faless/net/fix_close_execRémi Verschelde
Disable socket descriptor sharing with subprocs.
2019-10-08Merge pull request #32454 from jeronimo-schreyer/disable_unix_socketRémi Verschelde
Optional Unix Socket disable for devices that do not support it
2019-10-07GLES3 Fixes for ninepatch margins when patch size is smaller than the patch ↵Valentin Zagura
texture resolution Scaled ninepatch margins in screen space to be relative of the ninepatch size when the patch size is smaller than the patch texture resolution.
2019-10-07Disable file descriptor sharing with subprocs.Fabio Alessandrelli
On Unix systems, file descriptors are usually shared among child processes. This means, that if we spawn a subprocess (or we fork) like we do in the editor any open file descriptor will leak to the new process. This PR sets the close-on-exec flag when opening a file, which causes the file descriptor to not be shared with the child process.
2019-10-07Disable socket descriptor sharing with subprocs.Fabio Alessandrelli
On Unix systems, sockets are like file descriptors, and file descriptors are usually shared among child processes. This means, that if we spawn a subprocess (or we fork) like we do in the editor, open file descriptors will leak to the new process. This causes issue with sockets as they might remain open and bound (listening) when the original process closes.
2019-10-07Merge pull request #32613 from clayjohn/GLES2-canvas-bg-modeRémi Verschelde
Add canvas background mode to GLES2
2019-10-06add canvas background mode to GLES2clayjohn
2019-10-06fix current issues with post-processingclayjohn
2019-10-03Merge pull request #32510 from clayjohn/GLES2-fix-black-editor-and-crashRémi Verschelde
Remove glViewport call as it wasnt needed and caused crash GLES2
2019-10-03Merge pull request #32505 from clayjohn/GLES2-fix-probe-crashRémi Verschelde
Fix reflection probe crash in GLES2 with post-processing
2019-10-02remove glViewport call as it wasnt needed and caused crashclayjohn
2019-10-02Fix reflection probe crash in GLES2 with post-processingclayjohn
2019-10-02Merge pull request #32492 from akien-mga/fix-ip-uwpRémi Verschelde
IP: Fix build error on UWP
2019-10-02IP: Fix build error on UWPRémi Verschelde
Fixes this error: ``` drivers\unix\ip_unix.cpp(155): error C2593: 'operator =' is ambiguous .\core/ustring.h(177): note: could be 'void String::operator =(const CharType *)' .\core/ustring.h(176): note: or 'void String::operator =(const char *)' drivers\unix\ip_unix.cpp(155): note: while trying to match the argument list '(String, int)' ```
2019-10-02Removed unnecessary shader error log messagesYuri Roubinsky
2019-10-01updated defaults and documentation for GLES2 glowclayjohn
2019-10-01Fix casting to uint64_t when returning unix system timeKanabenki
2019-09-30Optional Unix Socket disable for devices that do not support itJairo
2019-09-30Implement DOF blur, Glow, and BCS in GLES2clayjohn
2019-09-26Added an exit code to the blocking mode of OS::executeRuslan Mullayanov
Updated documentation accordingly. Fixes #31881.
2019-09-25Merge pull request #32051 from qarmin/some_error_explanationRémi Verschelde
Added some obvious errors explanations
2019-09-25Added some obvious errors explanationsqarmin
2019-09-24Fix copyright headers and style issuesRémi Verschelde
2019-09-23Merge pull request #31751 from clayjohn/GLES3-Viewport-crash-canvasRémi Verschelde
Throw error when canvas background is used without sample buffer
2019-09-23Merge pull request #32275 from godotengine/skin_supportRémi Verschelde
Added skin support and simplified APIs to override bone position + glTF 2.0 import fixes
2019-09-23Merge pull request #32055 from qarmin/some_code_fixesRémi Verschelde
Changed some code found by Clang Tidy and Coverity
2019-09-22Merge pull request #32259 from NeoSpark314/fix_stereo_cubemap_gles2Rémi Verschelde
fix gles2 broken panorama sky on oculus quest
2019-09-22fix gles2 broken panorama sky on oculus questHolger Dammertz
This fixes an issue that was fixed for gles3 in #31419 but not applied to gles2. The fix consists of using a constant scale for cube_normal of -1.0 instead of -1000000. It results in broken panorama rendering on the oculus quest (see https://github.com/GodotVR/godot_oculus_mobile/issues/29)
2019-09-22Changed some code found by Clang Tidy and Coverityqarmin
2019-09-22Fix GLES2 skinning where VERTEX_TEXTURE not supportedlawnjelly
Although the backup USE_SKELETON_SOFTWARE skinning path is currently used when float texture is not supported, the default skinning path still fails when float texture is supported but GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS is 0, i.e. the device cannot read from texture during vertex shader. This PR adds the logic to activate the SKELETON_SOFTWARE path if either of these cases occur, preventing crashes on devices which have this combination of features.
2019-09-19Merge pull request #32004 from raphael10241024/fix_shader_uniformRémi Verschelde
Fix gles3 shader uniform vec3 error
2019-09-19Merge pull request #31202 from azagaya/light-dataRémi Verschelde
Create shadow_vec for altering shadow computation
2019-09-18Added skin support and simplified APIs to override bone position.Juan Linietsky
2019-09-17GLES2 Fixes for ninepatch margins when patch size is smaller than the patch ↵Valentin Zagura
texture resolution.. Scaled ninepatch margins in screen space to be relative of the ninepatch size when the patch size is smaller than the patch texture resolution.