ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cf.schmorp.de/Deliantra-Client/rendercache.c
(Generate patch)

Comparing cf.schmorp.de/Deliantra-Client/rendercache.c (file contents):
Revision 1.14 by root, Mon Nov 19 00:56:08 2018 UTC vs.
Revision 1.15 by root, Mon Nov 19 01:23:01 2018 UTC

1#include <vector> 1#include <vector>
2
3#include "salloc.h"
2 4
3struct rc_key_t 5struct rc_key_t
4{ 6{
5 GLenum mode; 7 GLenum mode;
6 GLenum format; // 0, GL_T2F_V3F, GL_V2F 8 GLenum format; // 0, GL_T2F_V3F, GL_V2F
37 uint8_t u, v, w, h; 39 uint8_t u, v, w, h;
38 uint16_t x, y; 40 uint16_t x, y;
39 }; 41 };
40 42
41 struct array_t 43 struct array_t
42 : std::vector<uint8_t> 44 : std::vector<uint8_t, slice_allocator<uint8_t>>
43 { 45 {
44 using std::vector<uint8_t>::vector; 46 using std::vector<uint8_t, slice_allocator<uint8_t>>::vector;
45 47
46 template<typename T> 48 template<typename T>
47 T &append () 49 T &append ()
48 { 50 {
49 auto ofs = size (); 51 auto ofs = size ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines