Alibek Omarov
3251b68df5
ref: gl: more simple search of GL func with alternative name (EXT, OES suffixes or no suffix)
1 year ago
mittorn
c1d1aa6787
ref_gl: rewrite ARB workaround to check EXT/OES names, notify user that function found with different name
1 year ago
mittorn
a2b992d865
ref_gl: fix codestyle
1 year ago
mittorn
0dc44249a2
ref_gl: fix XASH_GL_STATIC build
1 year ago
mittorn
150cbfa4de
ref_gl: do not trust REFAPI context version, get it from OpenGL anyway
1 year ago
mittorn
c0b068d81b
ref_gl: add workarounds for detecting extensions correctly on gles1/gles2 without wrapper (swiftshader works now)
1 year ago
mittorn
202b228691
gl2shim: correct allocation/cleanup
1 year ago
mittorn
c9c1286803
ref_gl: fix typo
1 year ago
mittorn
35be80fc21
ref_gl: request gl1.1 if compatibility profile unavailiable, this fixes launching with GL <= 2.0, improve old version extension detection
1 year ago
mittorn
c7dd9d6437
ref_gl: init r_temppool before InitExtensions, fix extension string allocation
1 year ago
mittorn
d378878c91
gl2shim: try fix getting program link log
1 year ago
mittorn
d254bac16b
ref_gl: integrate gl2shim extensions
1 year ago
mittorn
e23b632ce5
ref_gl: add missing non-arb shader functions
1 year ago
mittorn
2f321b1471
ref_gl: implement minimum inclusion version for GL extensions, implement quering extensions on core profile
1 year ago
mittorn
1505740b73
ref_gl: fix enabling multitexturing on GLES
1 year ago
mittorn
c765261db6
ref_gl: fix late studio cvars registration, enable DrawRangeElements in GLES contexts
1 year ago
mittorn
73087ead2d
ref_gl: fix build with XASH_GL_STATIC, avoid using ARB shader extension on core context
1 year ago
mittorn
676526a518
ref_gl: fix creating core context, support core in gl2shim by creating dumb array object
1 year ago
mittorn
7e0bd86b65
ref_gl: allow enabling XASH_GLES without wrapper, add ref_gles3compat, wrap gles functions in gl2wrap when XASH_GLES enabled
1 year ago
mittorn
a9ea3976a7
ref_gl: introduce gl2_shim based on vgl_shim for future limited core/gles context support (SLOW, still needs ffp for matrix operations)
1 year ago
Alibek Omarov
de19d78571
ref: fix late registration of studio cvars (thanks, @mittorn )
1 year ago
fgsfds
f79aaf93f8
ref: gl: psvita: disable NPOT textures, they're broken again
1 year ago
Alibek Omarov
3a57f26351
ref: gl: move ref_gl cvars to static allocation
1 year ago
Alibek Omarov
5d7d5319fd
engine: move ref cvars to static allocation
1 year ago
Andrey Akhmichin
9040c34f48
ref: gl: replace va function calls.
2 years ago
fgsfds
9150bbdfd8
ref: gl: psvita: remove the GL_CheckExtension hack
2 years ago
fgsfds
5a3e3b3977
ref: gl: add immediate mode shim for psvita
2 years ago
fgsfds
9cf6e421cb
ref: gl: psvita: force-enable NPOT textures
2 years ago
fgsfds
34dd52ca90
ref: gl: trust the GL_EXTENSIONS string on psvita
2 years ago
Alibek Omarov
61c142e2db
ref: move renderers into ref subdirectory
2 years ago
Alibek Omarov
5fb4edeb36
ref: simplify gldebug switchcase in output function, kinda fix const qualifiers
2 years ago
SNMetamorph
29ad3de78a
ref_gl: added support for GL_ARB_texture_compression_bptc extension
3 years ago
Alibek Omarov
0c26c24331
ref_gl: really disable VBO by default for now
3 years ago
Alibek Omarov
75e8a51058
ref_gl: disable VBO. Rename r_vbo to gl_vbo to ignore existing config values as it was enabled by default
3 years ago
Alibek Omarov
ac213c22ed
ref: change some FCVAR_ARCHIVE to FCVAR_GLCONFIG to save in separate config
3 years ago
Alibek Omarov
e0efe0aa23
engine: remove emboss filter. There seems no real use for it.
3 years ago
Alibek Omarov
d7db48ce4b
engine, ref: create shared cvars list, register them at engine side, make a generic macro to declare, define and get all pointers at ref side
3 years ago
Alibek Omarov
293482fbd5
engine: FCVAR_GLCONFIG are not readonly anymore. To make truly readonly cvar for renderer, one must apply FCVAR_READ_ONLY flag
3 years ago
SNMetamorph
6c9321e50c
ref_gl: added multisample textures support
3 years ago
SNMetamorph
c366e25a10
ref_gl: cvar gl_wgl_msaa_samples renamed to gl_msaa_samples
3 years ago
Alibek Omarov
d1e6063650
ref_gl: add close_gl4es, fix #258
3 years ago
SNMetamorph
2db6ad2c8a
ref_gl: fixed GL_CheckForErrors doesn't print error message
3 years ago
Alibek Omarov
9313f7e80e
engine: replace pool pointer by pool handle
3 years ago
Alibek Omarov
45334064b6
ref_gl: remove detail textures list generation leftovers
4 years ago
Alibek Omarov
58edfbc485
engine: move cvars that expected to exist by client.dll from render dll to engine
...
Fixes #316
4 years ago
Gleb Mazovetskiy
5e0a0765ce
Trim all trailing whitespace
...
The `.editorconfig` file in this repo is configured to trim all trailing
whitespace regardless of whether the line is modified.
Trims all trailing whitespace in the repository to make the codebase easier
to work with in editors that respect `.editorconfig`.
`git blame` becomes less useful on these lines but it already isn't very useful.
Commands:
```
find . -type f -name '*.h' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
find . -type f -name '*.c' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
```
4 years ago
mittorn
c80da05e94
ref_gl: make renderer fallback possible
4 years ago
mittorn
0c69f7649c
ref_gl: add gl4es support
5 years ago
Alibek Omarov
9421457b3a
engine: big refactoring commit, instead of using platform-specific platform-specific macros, use appropriate macros set by public/build.h
5 years ago
Alibek Omarov
3c3d5d472e
ref_gl: bring back glDrawRangeElements support
5 years ago