mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-15 02:01:09 +01:00
Added the new gles2 batch rendering pr by lawnjelly as a patch.
This commit is contained in:
parent
c43779f749
commit
d9269d2f84
14
SConstruct
14
SConstruct
@ -356,6 +356,10 @@ if len(sys.argv) > 1:
|
|||||||
|
|
||||||
exit()
|
exit()
|
||||||
elif arg[0] == 'p':
|
elif arg[0] == 'p':
|
||||||
|
if arg == 'p':
|
||||||
|
print("Applies a patch. Append c for the compilation database patch, and/or g for the gles2 batching patch. For example: pcg")
|
||||||
|
exit()
|
||||||
|
|
||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
full_path = cwd + '/engine/'
|
full_path = cwd + '/engine/'
|
||||||
|
|
||||||
@ -365,8 +369,14 @@ if len(sys.argv) > 1:
|
|||||||
|
|
||||||
os.chdir(full_path)
|
os.chdir(full_path)
|
||||||
|
|
||||||
#apply the compilation database patch to just the working directory, without creating a commit
|
#apply the patch to just the working directory, without creating a commit
|
||||||
subprocess.call('git apply --index ../patches/compilation_db.patch', shell=True)
|
|
||||||
|
if 'c' in arg:
|
||||||
|
subprocess.call('git apply --index ../patches/compilation_db.patch', shell=True)
|
||||||
|
|
||||||
|
if 'g' in arg:
|
||||||
|
subprocess.call('git apply --index ../patches/gles2_batch_rendering.patch', shell=True)
|
||||||
|
|
||||||
#unstage all files
|
#unstage all files
|
||||||
subprocess.call('git reset', shell=True)
|
subprocess.call('git reset', shell=True)
|
||||||
|
|
||||||
|
5982
patches/gles2_batch_rendering.patch
Normal file
5982
patches/gles2_batch_rendering.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user