mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-12 09:08:11 +03:00
gl_rend_state massive overhaul. Created render_data_context
This commit is contained in:
+3
-2
@@ -16,6 +16,7 @@
|
||||
#include "../module_table.hpp"
|
||||
#include "../data.hpp"
|
||||
#include "../effect.hpp"
|
||||
#include "../gl_state.hpp"
|
||||
#include "../hand_item.hpp"
|
||||
#include "../mdata_manager.hpp"
|
||||
#include "../pv_db.hpp"
|
||||
@@ -18129,7 +18130,7 @@ void rob_chara_age_age_object::disp(render_context* rctx, size_t chara_index,
|
||||
obj_vert_buf.cycle_index();
|
||||
|
||||
GL::ArrayBuffer buffer = obj_vert_buf.get_buffer();
|
||||
size_t vtx_data = (size_t)buffer.MapMemory();
|
||||
size_t vtx_data = (size_t)buffer.MapMemory(gl_state);
|
||||
if (!vtx_data)
|
||||
return;
|
||||
|
||||
@@ -18138,7 +18139,7 @@ void rob_chara_age_age_object::disp(render_context* rctx, size_t chara_index,
|
||||
memmove((void*)(vtx_data + vertex_array_size * i),
|
||||
(void*)((size_t)vertex_data + vertex_array_size * v44[i].second), vertex_array_size);
|
||||
|
||||
buffer.UnmapMemory();
|
||||
buffer.UnmapMemory(gl_state);
|
||||
|
||||
mesh.num_vertex = disp_count * num_vertex;
|
||||
sub_mesh.num_index = disp_count * num_index;
|
||||
|
||||
Reference in New Issue
Block a user